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.
| Comment | File | Size | Author |
|---|---|---|---|
| mimemail-strip-styles.patch | 749 bytes | plach |
Comments
Comment #1
jriedel commentedI 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!
Comment #2
jerdavis