Can't send HTML emails
-
I’ve set
$headers = array('content-type: text/html; charset=UTF-8','from: '.userpro_get_option('mail_from_name').' <'.userpro_get_option('mail_from').'>');
and also set wp_mail_content_type:
add_filter( 'wp_mail_content_type', function($content_type){return 'text/html';}); wp_mail( $user->user_email, $subject, $message, $headers );
Still, in the email headers I’m seeing:
MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="_av-xrxFAYdORP7Y9udfdVr4vA" --_av-xrxFAYdORP7Y9udfdVr4vA Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html>[rest of message]...
Anyone have any ideas?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Can't send HTML emails’ is closed to new replies.