WP_MAIL () from PHP goes through
-
I installed a plugin that sends a registration message manually from its own php code. This wp_mail() with plain text is not getting changes by WP Better Emails.
I have these lines:
add_action('user_register', 'user_register_email'); function user_register_email($user_id) { $user = new WP_User($user_id); $email = $user->user_email; $text = 'Hi, {%username%}!'; $text = str_replace(array('{%username%}'), array($user->user_login), $text); $headers = "From: Name <[email protected]>"; wp_mail( $email, 'Registration on '.get_bloginfo('name')', $text, $headers); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘WP_MAIL () from PHP goes through’ is closed to new replies.