I've installed Mime mail and then followed the steps in the handbook here http://drupal.org/node/291762 (following option 1) to tweak the css for the emails so that they have a plain white background.

That works fine with form submissions from ym website coming to me in nicely formatted emails and with a black text on a white background.

I've just tried to reply to one of these messages (using Thunderbird) and the formatting has changed with the coloured background again and a different colour font!

Any ideas why this has happened and how to sort it out?

Ta
Dan

Comments

Dubber Dan’s picture

any one?

voj’s picture

I know that this is an old post but worth answering for those who don't know the stuff.
There are some of the email programs that supports some of the css properties styling while some only uses plain text and images.
And in your instance, when you viewed the email on the YM website(is that yahoo mail?) you viewed the colors properly then when viewing it on another email program it didn't show the color properly.
it's because some email programs supports #RGB color, while some don't. Today I research that hsl() function on css is better than #RGB when styling an email.

example:

<h1 style="color: #00F">Header 1</h1><!-- shows blue in color BUT only in some email programs -->
<h1 style="color: hsl(240, 100%, 100%)">Header 2</h1><!-- shows blue in color in most of the email programs -->

additional note:
when styling an email, the header('Content-type: '); (in php of course) should be header('Content-type: text/html');
also there are no external stylesheet in the email so you should use an inline style property

for a complete list of supported styling on a certain email program go to this link:
http://www.campaignmonitor.com/css/#css-com_17