Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

Background images not displaying.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ecuisinetest@gmail.com - 08 Feb 2008 23:18 GMT
I have some HTML that is being sent via email through an ASP.NET app.
It displays fine in
yahoo mail but not in gmail or hotmail. Can anybody shed some light.

Here is a link to a sample page

http://www.alliedtechnical.net/test.html

and the source

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/
TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Test Page for Background Image Problem</title>
</head>
<body>
   <div>
       Just the image as an img tag...<br />
       <img src='http://www.ecuisine.net/templates/6_footer.jpg'
alt="" />

       <br />A table with a backgound-image on the table tag...<br />

       <table width="600" style="height:324px;background-
image:url('http://www.ecuisine.net/templates/
6_footer.jpg');background-
repeat:no-repeat;">
       <tr>
           <td align="center" valign="middle">
               Some data to fill the cell
           </td>
       </tr>
       </table>

       <br />A table with a backgound-image on the td tag...<br />
       <table width="600">

       <tr>
           <td align="center" valign="middle" style="height:
324px;background-image:url('http://www.ecuisine.net/templates/
6_footer.jpg');background-repeat:no-repeat;">
               Some data to fill the cell
           </td>
       </tr>
       </table>
   </div>
</body>
</html>
Nathan Sokalski - 09 Feb 2008 01:05 GMT
I am going to guess that it is the security settings for the email. There
are often stricter security settings for HTML email messages than there are
for plain text emails. Take a look at the settings in the email viewers, and
see if it works then. I use Hotmail, and I often need to click Show Content
for emails that are html emails (I believe there is an option to have it
always show it, but it's been a while since I checked). I would also like to
recommend that you not send html emails, or at least let the user specify
whether they want the email as html or plain text, because some email
viewers don't even give you the option of viewing the html of html emails.
Signature

Nathan Sokalski
njsokalski@hotmail.com
http://www.nathansokalski.com/

>I have some HTML that is being sent via email through an ASP.NET app.
> It displays fine in
[quoted text clipped - 45 lines]
> </body>
> </html>

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.