HTML not working in new user emails
-
On a test server for a new site I installed Mailing Group Listserv and then all new user emails lose their HTML formatting showing the code for br like this:
New user registration on my site:<br /> <br /> Username: [email protected]<br /> E-mail: [email protected].
I switched the the 2017 theme and De-activated all other plugins, leaving Mailing Group Listserv active and still got the same results, broke the HTML in the new user emails.
I found a workaround Here on post 4-5 that forces HTML for WP-mail and added it to a custom plugin:
/* * Force HTML content type format for wp_mail */ function set_content_type( $content_type ){ if( empty($content_type) OR $content_type == 'text/plain' ) { $content_type = 'text/html'; } return $content_type; } add_filter( 'wp_mail_content_type', 'set_content_type', 1 );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘HTML not working in new user emails’ is closed to new replies.