Download & Extend

HTML messages broken by linebreaks & META tags

Project:Mime Mail
Version:6.x-1.x-dev
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

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.

Comments

#1

Project:Simplenews» Mime Mail
Version:6.x-1.0-rc6» 6.x-1.x-dev

Simplenews does not insert line breaks. drupal_mail() inserts line breaks (using drupal_wrap_mail()). Only Mime Mail can revert this. Do you use the latest dev releases of all modules?

#2

Status:active» closed (duplicate)

Duplicate of #321026: HTML messages are broken by line breaks.

nobody click here