Link to home
Create AccountLog in
Avatar of Matrix1000
Matrix1000

asked on

Outlook 2003 HTML email - why don't 'background' images show

I've created an html template that I want to use for an Outlook 2003 stationary and uploaded all the images I want to use in the email to my webserver and verified the path etc by viewing them in IE. I've also hard coded the full http path to the images in the html template I created.

I loaded the html template by going to Options>Mail Format>stationary Picker> New>use this file as a template. etc.

In the preview window the email shows up as intended with all the repeating backgrounds and background images I used in table cells.
Ive set the table cells to both have an html and css attribute for the background but when I create a new mail message... all the background images don't show up ....what the heck?

I've tried both.....but nothing works...

HTML
<tr>
    <td background="http://www.mysite.com/background.gif> My stuff</td>
 </tr>

-------------------------------------------------------------------------------------------------
CSS

<style type="text/css">
<!--
.centerbackground {
      background-image: url(http://www.mysite.com/background.gif);
}
-->
</style>
<tr>
    <td class="centerbackground"> My stuff</td>
 </tr>

--------------------------------
What am I doing wrong?


ASKER CERTIFIED SOLUTION
Avatar of Steve Agnew
Steve Agnew
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Outlook 2003 replaces valid image code in HTML templates with its own internal content IDs to refer to the images. Send the e-mail to yourself and view the source when you receive it to see what I'm talking about. This adds a whole lot of text to the file, but the images included this way do show up in the e-mails on the receiving end. Problem is, Outlook doesn't replace the image code in style declarations so it just ignores the specified image and doesn't display it.

Like DeadNight mentioned, security settings are part of the problem here and I can understand why they are this way by default. If you have an e-mail communique that users want to receive they can add your e-mail address to their trusted senders list and change their settings to download images from those trusted senders without having to view images on every e-mail by default.

If you can get them to do this, and if you specify the images in the head section rather than inline (inline doesn't seem to work for some reason), they will be downloaded when the recipient views your e-mail.