• 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?

    https://www.ads-software.com/plugins/wpmandrill/

Viewing 1 replies (of 1 total)
  • I have the same problem,

    Every wp notification that I receive doesn’t have html links.
    Also woocommerce emails are a mess of css code.

    Can anyone address this please?

    Thank you

Viewing 1 replies (of 1 total)
  • The topic ‘Can't send HTML emails’ is closed to new replies.