inboundnow / retired-leads

Track visitor activity, capture and manage incoming leads, and send collected emails to your email service provider for WordPress
http://www.inboundnow.com/leads/
11 stars 3 forks source link

[Lead Notification Emails] - Some are arriving in broken html #60

Closed atwellpub closed 9 years ago

atwellpub commented 10 years ago

A client of mine is forwarding me emails that come in broken html. I have not been able to identify the point of the break. Will everyone keep a lookout for this? Not all HTML emails are breaking.

atwellpub commented 10 years ago

This may have to do with non utf8 encoded characters in the body. I found this in an email's headers that looks like the point of break:

X-Priority: 3
X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/)
X-SG-EID: OhAH9raqOzNvhE7niEiN0qQCFdHezZNbVbrB1cBU1rT8qk4Pp/kwecBDnPIDqj6EIiJgMPydu7vRUHVWAqbWj6zy0DswFDA1EtQV4N4UfLl1YjyTjb3jse+1mEwRFX4o+Cxbuzolm7IE8I0UXt3KKVh64NNTFpy6Af2TP5ZZdAg=

You are exactly this kind of person; in your announcement “The Ukraine Election” on May 26 2014, you said very accurately and objectively: =?UTF-8?Q?=E2=80=9CThings_have_to_change_in_order_to_remain_the_same.__Th?=
 =?UTF-8?Q?e_Maidan_protests_were_for_naught._One_Ukrainian_oligarch_has_b?=
 =?UTF-8?Q?een_replaced_by_another._Poroshenko=E2=80=99s_palace_is_as_sump?=
 =?UTF-8?Q?tuous_as_Yanukovich=E2=80=99s_palace=E2=80=9D.?=
You analytical abilities amaze when in your article “The Lies Grow More Audacious” on June 6 2014 you wrote: =?UTF-8?Q?=E2=80=9CSanctions_on_Russia_will_wreck_Europe_and_have_little,?=
 =?UTF-8?Q?_if_any,_effect_on_Russia=E2=80=9D.?=
MIME-Version: 1.0

to test a fix I'm utf8 encoding the message body from now on.

atwellpub commented 10 years ago

utf8 encode did not solve the issue. client is still forwarding me broken emails after the code was placed in for testing. Will study more when given the opportunity.