nguyenminh

wordpress sendmail html

 add_filter('wp_mail_content_type', 'set_html_content_type');
                /*Send mail to admin*/
                wp_mail('admin@nguyenminh.me', 'Subject', '<h1>Html Email</h1>');
                remove_filter('wp_mail_content_type','set_html_content_type');

Categorised in: Tổng hợp

0 Comments for "wordpress sendmail html"

Leave a Reply

Your email address will not be published. Required fields are marked *