For our customization want to set content type as html when sending mail using wp_mail() then place the following snippet in functions.php within your theme folder!.

function set_content_type_as_html()
{
    return "text/html";
}
add_filter( 'wp_mail_content_type','set_content_type_as_html' );

Have any doubt, then comment here!

Leave a Reply

Your email address will not be published. Required fields are marked *