Answer ( 1 )

    0
    2021-08-06T05:15:37-05:00

    from wp_mail codex page:

    The default content type is ‘text/plain’ which does not allow using HTML. However, you can set the content type of the email by using the ‘wp_mail_content_type’ filter.

    // In theme's functions.php or plug-in code:
    
    function wpse27856_set_content_type(){
        return "text/html";
    }
    add_filter( 'wp_mail_content_type','wpse27856_set_content_type' );
    

Leave an answer

Browse
Browse