Reputation: 85
I wrote following piece of code:
[SOLVED]
I've tried everything and this piece of code seems fine for me.
Regards, Andy
Upvotes: 0
Views: 101
Reputation: 908
rgb(0, 0, 0)
is not supported in older email clients use instead regular background colors.
Also, for email clients is better to use tables instead of div tags.
Upvotes: 1
Reputation: 28941
Many email clients ignore background colors specified in the <body>
tag.
Use a container table instead:
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td bgcolor="#000000">
hello world!
<img src="cid:bg.png">
footer
</td>
</tr>
</table>
Yes, it's a lot of extra HTML code. Building HTML emails that perform well in the majority of email clients can be painful.
Some helpful references:
Upvotes: 2