Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.

When I try to create a html mail with .net´s SmtpClient with pictures and send it, outlook and gmail cannot see the image borders.

If I in outlook save the mail as a html file, I can easily see the borders.
The weird thing is that the main header image has no problem being shown.

Ive tried change the format of the pictures to gif or jpg, but its the same. Ive also tried skipping css, and set the background attribute in the td´s, but that didnt work neither.

You can see the html file here: http://14rs.dk/MailTest.htm[^] (Its very simple!)

Hope you can help! Thanks alot :)
Posted
Comments
E.F. Nijboer 9-Aug-10 5:38am    
Did you add the images as attachment with relative links? Deu to spam the images won't be loaded from external sources.
lvq684 9-Aug-10 5:42am    
No the imagelinks are absolute. Like this: background-image:url(http://www.14rs.dk/Images/ContentCornerTopLeft.gif);

1 solution

Hey,

you can give complete url of the image (like http://www.vadluri.com/images/img1.jpg).
you should upload images into server not in localhost.

if you want only image border
<img src="img path" border="1" alt=""/>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900