Using MimeMail with Simplenews (version 6.x-1.0-rc6), with html turned on, some people get the message with a ton of css code in it.

Comments

BMorse’s picture

Is this just me? No one else has this problem? Maybe it's something to do with the template?

TapSkill’s picture

No, MIME Mail is designed to send the CSS along with the message.
I don't like it, either.

Well, you can customize it, like anything else,
but nothing seems to be 100% working for D6. Big annoyance.

mhdg’s picture

Hello,

Because no mail.css file exists in the theme directory, mime mail send the default theme css included in the maessage.

For instance, you coud create a mail.css file as this one:

body, div, h1, h2, h3, h4, h5, h6, pre, form, textarea, p {
  margin: 0;
  padding: 0;
}

After that things will be more stable.
Enjoy !

mfb’s picture

Status: Active » Closed (duplicate)
jklmnop’s picture

i had this issue and it was because there was were tags in a comment in the css.

/* here is a comment with a <p> tag in it */

outlook did not like this whatsoever.

ressa’s picture

Version: 6.x-1.x-dev » 7.x-1.0-alpha2

Thanks @mhdg. After updating to the latest version (7.x-1.0-alpha2), a lot of CSS was included in the message, margins were lost, line height set to nothing etc... Including an empty mail.css, referenced from my themes .info file fixed it.