HTML messages broken by linebreaks & META tags

ctsrutland - May 28, 2009 - 20:24
Project:Simplenews
Version:6.x-1.0-rc6
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I was trying to send an html message generated by someone else. If I copy and paste the HTML into Outlook Express as a test it sends fine. When I copy & paste into Simplenews, it becomes a garbled mess of rendered html and html displayed as text.

What seems to be happening is that in the html file (made by someone else) there are line feeds like this:

<img width=750 height=80  [LF here]
  src=top-header2.gif></p>

and I then see "src=top-header2.gif" as text in the message.

If I strip out all the line feeds before pasting it in then it almost works ok, except that I have 2 lines at the beginning of the received email that say:

<!--[if gte mso 10]>
<![endif]-->

..presumably left by some html editor.

I also had to delete a load of META tags that appeared as text. Don't ask me why something generated to send as an email has lots of META tags, but it'd be a nice tweak if simplemail could not send them out as text.

I'm using Drupal 6.12.

Thanks to the simplenews authors! Your work is appreciated.

 
 

Drupal is a registered trademark of Dries Buytaert.