The drupal_html_to_text function used to create the plaintext alternative of a message strips the <style> element but keeps its textual content, so the plaintext alternative gets a bunch of "rubbish" on the top.
The proposed patch strips the <style> element along with its content before passing the text to drupal_html_to_text.

CommentFileSizeAuthor
mimemail-strip-styles.patch749 bytesplach

Comments

jriedel’s picture

I was just setting up a site with simplemail, then added mimemail and noticed this problem. I just tried the patch. It fixed it right up.

Thanks for the good job!

jerdavis’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.