user3140714
user3140714

Reputation: 85

html in mail doesn't shows up. Inline images does

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

Answers (2)

believe me
believe me

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

jszobody
jszobody

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:

  1. http://www.campaignmonitor.com/resources/will-it-work/guidelines/
  2. http://www.campaignmonitor.com/css/

Upvotes: 2

Related Questions