Want to send HTML formatted emails with WordPress wp_mail() function? Add the following code to the functions.php file of your current activated WordPress theme.
1 2 3 4 5 6 7 8 | /** * Send HTML formatted emails. */ function fwm_set_content_type(){ return "text/html"; } add_filter( 'wp_mail_content_type','fwm_set_content_type' ); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.