Hi,
Thanks for your plugin !
I have tested successfully this plugin with contact form 7.
But I i’m using Elementor forms it’s doesn’t work..
Do you have an idea how to get it working ?
Thanks !
]]>Hello,
firstly I have to say that I really love your plugin. But there is a security issue when multiple e-mails at once are sended. In the plain text version of every e-mail sended is attached plain text version of the very first e-mail sended in a single request. In my case every user get an e-mail with private link of a user whom the first e-mail is send.
Can you please check it out?
]]>Hello,
Would you be able to make this plugin work with Gravity Forms (and Postman SMTP).
Thank you very much!
]]>Hi there,
Our server provider informed me that the plugin is throwing a lot of errors.
https://gist.github.com/pantheonsystems/b9b0ac14a7118feca8648ad624887643#file-php-error-log
Any idea what’s causing this?
]]>I am seeing a lot of errors like this on PHP 7.2:
[15-Jun-2020 09:34:37 UTC] PHP Warning: DOMDocument::loadHTML(): Unexpected end tag : p in Entity, line: 10 in /home1/.../public_html/wp-content/plugins/lh-multipart-email/includes/Html2Text.php on line 127
[15-Jun-2020 09:34:37 UTC] PHP Warning: DOMDocument::loadHTML(): Unexpected end tag : p in Entity, line: 16 in /home1/.../public_html/wp-content/plugins/lh-multipart-email/includes/Html2Text.php on line 127
[15-Jun-2020 09:34:37 UTC] PHP Warning: DOMDocument::loadHTML(): Unexpected end tag : p in Entity, line: 22 in /home1/.../public_html/wp-content/plugins/lh-multipart-email/includes/Html2Text.php on line 127
[15-Jun-2020 09:34:37 UTC] PHP Warning: DOMDocument::loadHTML(): Unexpected end tag : p in Entity, line: 30 in /home1/.../public_html/wp-content/plugins/lh-multipart-email/includes/Html2Text.php on line 127
[15-Jun-2020 09:34:37 UTC] PHP Warning: DOMDocument::loadHTML(): Unexpected end tag : p in Entity, line: 33 in /home1/.../public_html/wp-content/plugins/lh-multipart-email/includes/Html2Text.php on line 127
[15-Jun-2020 09:34:37 UTC] PHP Warning: DOMDocument::loadHTML(): Unexpected end tag : p in Entity, line: 40 in /home1/.../public_html/wp-content/plugins/lh-multipart-email/includes/Html2Text.php on line 127
[15-Jun-2020 09:34:37 UTC] PHP Warning: DOMDocument::loadHTML(): Unexpected end tag : p in Entity, line: 51 in /home1/.../public_html/wp-content/plugins/lh-multipart-email/includes/Html2Text.php on line 127
[15-Jun-2020 09:34:37 UTC] PHP Warning: DOMDocument::loadHTML(): Unexpected end tag : p in Entity, line: 66 in /home1/.../public_html/wp-content/plugins/lh-multipart-email/includes/Html2Text.php on line 127
[15-Jun-2020 09:34:37 UTC] PHP Warning: DOMDocument::loadHTML(): Unexpected end tag : p in Entity, line: 70 in /home1/.../public_html/wp-content/plugins/lh-multipart-email/includes/Html2Text.php on line 127
[15-Jun-2020 09:34:37 UTC] PHP Warning: DOMDocument::loadHTML(): Unexpected end tag : p in Entity, line: 82 in /home1/.../public_html/wp-content/plugins/lh-multipart-email/includes/Html2Text.php on line 127
[15-Jun-2020 12:01:02 UTC] PHP Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 368 in /home1/.../public_html/wp-content/plugins/lh-multipart-email/includes/Html2Text.php on line 127
[15-Jun-2020 12:01:03 UTC] PHP Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 368 in /home1/.../public_html/wp-content/plugins/lh-multipart-email/includes/Html2Text.php on line 127
[15-Jun-2020 14:01:14 UTC] PHP Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 234 in /home1/.../public_html/wp-content/plugins/lh-multipart-email/includes/Html2Text.php on line 127
[15-Jun-2020 14:01:14 UTC] PHP Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 324 in /home1/.../public_html/wp-content/plugins/lh-multipart-email/includes/Html2Text.php on line 127
[15-Jun-2020 14:01:14 UTC] PHP Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 431 in /home1/.../public_html/wp-content/plugins/lh-multipart-email/includes/Html2Text.php on line 127
[15-Jun-2020 14:01:14 UTC] PHP Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 434 in /home1/.../public_html/wp-content/plugins/lh-multipart-email/includes/Html2Text.php on line 127
[15-Jun-2020 14:05:24 UTC] PHP Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 116 in /home1/.../public_html/wp-content/plugins/lh-multipart-email/includes/Html2Text.php on line 127
[15-Jun-2020 14:05:24 UTC] PHP Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 116 in /home1/.../public_html/wp-content/plugins/lh-multipart-email/includes/Html2Text.php on line 127
Some emails end up not being send and I believe this could be the issue.
]]>Hi Pete,
When the solution implemented in your plugin is used (same with the snippets on stackoverflow this is based on), the alternative text body is reused for different consecutive mails being sent. This results in recipients potentially receiving mails not meant for them. Luckily most people using HTML-enabled mail clients won’t see the text version, but it’s still a security problem in a way.
I implemented your plugin on a site with Event Espresso and found that when approving a registration for an event, EE then sends multiple mails in one go. One mail notifying the event admin, and another, obviously different mail sent to the user.
Your plugin checks, right before sending, if (1) it concerns a HTML mail and (2) if there’s no text-alternative specified. If both are yes, you provide a text alternative and let WP “hit send” on the phpmailer object.
However, since WordPress doesn’t know you added an AltBody, on sending consecutive mails, it only clears the phpmailer properties it knows of, so it leaves the previous AltBody untouched.
Since your plugin sees there’s an AltBody already present, it basically assumes everything’s fine and so each consecutive html mail will have the AltBody (text version) of the first mail that was sent.
Hope you don’t mind, but I modified your plugin to fix this problem. I added extensive comments, reformatted the code and added a few filters for flexibility.
Here’s a gist of the modified plugin, please use it as you like. I hope you decide to implement the changes so it gets pushed as an update. Thanks.
]]>I’ve noticed that whenever this plugin is used to send an email, I get the following PHP error:
[php7:warn] [pid 23163] [client 127.0.0.1:46350] PHP Warning: DOMDocument::loadHTML(): Attribute xmlns redefined in Entity, line: 2 in /wp-content/plugins/lh-multipart-email/includes/Html2Text.php on line 127
I’m using PHP 7.1.
Where can I start to try to debug this?
]]>Hi Peter,
thanks for an awesome plugin.
I wanted to let you know that I’ve included it in my Extension Directory for Notification plugin.
It looks like this: https://bit.ly/2F0pNRY and it’s only a wrapper for www.remarpro.com API, meaning it only allows to install the plugin like you’d normally do via Plugins -> Add New screen.
I hope you don’t mind and more people will be using your awesome plugin!
]]>