20 Jan WP Tip: Send HTML in your WP emails
If you utilize sending custom emails in WP, you will need to set the email content type:
1 2 3 4 | function jx_wp_email_content(){ return "text/html"; } add_filter( 'wp_mail_content_type','jx_wp_email_content' ); |
Now when you use wp_mail(), you can include HTML as the $message content.
No Comments