Just paste the following code snippet to your functions.php file of your current theme. It will force all emails to be sent in HTML format.
[php]function set_html_content_type()
{
return ‘text/html’;
}
add_filter( ‘wp_mail_content_type’, ‘set_html_content_type’ );[/php]
If you want to set HTML format for specific emails and do not want it to affect rest of your website just call the add_filter and remove_filter just before and after you have called wp_email, respectively. For example:
[php]add_filter( ‘wp_mail_content_type’, ‘set_html_content_type’ );
wp_mail("user_email@domain.com", "subject", "message");
remove_filter( ‘wp_mail_content_type’, ‘set_html_content_type’ );
[/php]