Bug: Non-PMPRO emails lose their line breaks and become a single long string
-
First of all, thank you for such a wonderful plugin and providing it to the community for free. Thank you for your generosity.
Just a quick bug report which I hope will be helpful to you:
With PMPRO plugin installed, emails that are sent by WP and other plugins lose all their line breaks and become a long string of text.
Fyi, I have ticking/unticking the box in PMPRO email settings that says…
“If unchecked, all emails from “WordPress <[email protected]>” will be filtered to use the above settings.”
…makes no difference.
Could the problem be because PMPRO did not reset ‘wp_mail_content_type’ back to ‘text/plain’ after it has sent messages?
According to WP Codex:
The default content type is ‘text/plain’ which does not allow using HTML. You can set the content type of the email either by using the ‘wp_mail_content_type’ filter (see example below), or by including a header like “Content-type: text/html”. Be careful to reset ‘wp_mail_content_type’ back to ‘text/plain’ after you send your message, though, because failing to do so could lead to unexpected problems with e-mails from WP or plugins/themes.
URL:
https://codex.www.ads-software.com/Function_Reference/wp_mail
- The topic ‘Bug: Non-PMPRO emails lose their line breaks and become a single long string’ is closed to new replies.