tags:

views:

133

answers:

2

Hi all I want to send some HTML in a mail message

I have a td that has a CssClass with background image.

when I checked the received mail I found that the background image didn't appear.

I tried to force the background image to the TD using the deprecated background attribute but nothing changed.

is there any workaround for this problem ?

thanks

A: 

Most email clients do not read external css. So assuming your CssClass refers to an external css file it wont work in most email clients. Try putting the css inline is a style tag and see if that works.

Sruly
I already put the style inline but it's the same
Mina Samy
Can you show me your html/css?
Sruly
It's something like that: .style1 { background-image: url('http://192.168.98.47/Pictures/banner-bg_05.gif'); background-repeat:repeat-x; }that's the ip of my machinethen the td has class="style1"
Mina Samy
192.168.98.47 is an internal IP address you receive through your router. Also you need to include http:// otherwise it will look for a folder called 192.168.98.47
Waleed Al-Balooshi
Like @waleed said you need to have an absoulute url
Sruly
Thanks all worked after using the absolute url
Mina Samy
+1  A: 

Take a look at Guide to CSS Support in Email Clients. HTML emails will likely be rendered VERY differently depending on the email client that is being used to view your email.

Outlook 2007/2010 does NOT render background images in HTML emails. I don't know which email client you are testing with but it is highly likely that the client is not displaying background images.

See the link above and test, test, test, test.

Alison