add_filter( ‘wp_mail_content_type’, ‘set_html_content_type’ );

function set_html_content_type() {

return ‘text/html’;

}

$subject = ‘Local Business Search : Your Profile Updated.’;

$msg = “<html>”

. “<body>”

. “Dear User,”

. “<br/>Your password has been updated successfully.”

. “<br/>Your new password : $edt_npass”

. “<br/><br/>”

. “Thanks,<br/>”

. “Team Local Business Search”

. “</body>”

. “</html>”;

$res = wp_mail($edt_mail,$subject,$msg); // sends email to user

Leave a Reply