Hot answers tagged

1

Try this one. add_filter( 'wp_mail_content_type', 'wpdocs_set_html_mail_content_type' ); $to = 'sendto@example.com'; $subject = 'The subject'; $body = 'The email body content'; $headers = array('Content-Type: text/html; charset=UTF-8'); wp_mail( $to, $subject, $body , $headers); // Reset content-type to avoid conflicts -- ...



Only top voted, non community-wiki answers of a minimum length are eligible