How to add HTML content type in wordpress mail


remove_filter( 'wp_mail_content_type', 'set_html_content_type' );

function set_html_content_type() {

    return 'text/html';
}



Simply paste above code in to your function.php file

Advertisements

How to change WordPress default FROM NAME


Simply paste the following snippet into your functions.php file

Don’t forget to put the desired FROM NAME on return

add_filter( 'wp_mail_from_name', 'my_mail_from_name' );
function my_mail_from_name( $name )
{
    return 'VENU';
}