• Resolved cynolol

    (@cynolol)


    Hello,
    I’ve set up the plugin, and I’m getting the emails. However its not arriving as HTML format, even though Post SMTP log shows it as a HTML. The content of the email is correct, only problem it shows as plain text.
    Code that sends the email is:

    add_filter( 'wp_mail_content_type', 'set_html_content_type' );
    
    		try { wp_mail($to, $subject, $this->getResult()); } 
    		catch (Exception $e) { $result = false; }  
    
    		remove_filter( 'wp_mail_content_type', 'set_html_content_type' );
    
    		function set_html_content_type() {
    		    return 'text/html';
    		}
    • This topic was modified 7 years, 11 months ago by cynolol.
    • This topic was modified 7 years, 11 months ago by cynolol.

    The page I need help with: [log in to see the link]

The topic ‘E-mail not arriving as HTML’ is closed to new replies.