14

Is it possible to create an HTML email signature for Outlook 2003 or above that doesn't reference external images?

That is, using those special "cid" reference but embed the image itself in the signature and not on the file system or network.

This is for an web application that generates a "standard" email signature based on various input from a user. It has worked fine so far with a single "embedded" image. But a new feature is going to require the possible addition of multiple tiny images.

Getting to user to save one email signature template and one image to the user's machine is about the limit of what I'd like to require of the user. But forcing the user to save multiple images seem to be pushing things a little to far in my opinion.

So my problem is trying to embed the images into without having to inconvenience the user with multiple downloads first.

0

4 Answers 4

6

Is it possible to base64 encode the image?

<a href="http://www.britblog.com/">
    <img
        src="data:image/gif;base64,R0lGODlhUAAPAKIAAAsLav///88PD9WqsYmApmZmZtZfYmdakyH5BAQUAP8ALAAAAABQAA8AAAPbWLrc/jDKSVe4OOvNu/9gqA /..../NcV9/j5+g4JADs="
        alt="Signature" width="80" height="15">
</a>

Just a thought

1
  • 4
    The only thing is it doesn't work in Outlook 03 or 07. Pretty much in every other client (including gmail and yahoo) it works.
    – bioffe
    Commented May 10, 2011 at 15:10
5

If you reference the image using a file:/// URI Outlook will automatically change it into a cid: URI and add the image as an attachment on insertion.

BTW: What has this got to do with programming?

EDIT: OK, considering your update to the question: I'm afraid this isn't possible. It's not a limitation specific to signatures or Outlook though. It's just the way HTML works. If you want images inside an HTML document these will have to be separate. No way around that without proprietary formats, none of which Outlook would accept as a signature.

However, if this is for an intranet application you can get away with placing the images on a network share and referencing via UNC, e.g.

<img src="file://///ServerName/ShareName/FileName.png" />
4
  • It still seems like I need to have the image as a physical file on the the client machine.
    – BlackMael
    Commented Dec 5, 2008 at 14:21
  • 1
    Yes. Where would you want to store it instead? BTW: It does not necessarily have to be on the client machine. A UNC-path to a file on a network share works as well. Commented Dec 5, 2008 at 14:27
  • To clarify: What I meant was a path like: file://///ServerName/ShareName/FileName.png Commented Dec 5, 2008 at 14:29
  • Oh! I like that idea. Store the files on a network share. I think we have a winner :)
    – BlackMael
    Commented Dec 5, 2008 at 14:42
1

The way for all outlook version

Just write your .html with img file on the same directory, open it with chrome, select and copy the signature. Open Outlook and go to new post => signatures => new signature => name it Paste your signature on the field and press SAVE. Job is done.

PS : Remember to use ONLY table, tr, td, img, a tags to avoid problems with outlook. Never use p div tags.

0

If the image is small enough, then you might be able to do something with a data URI.

1
  • 3
    Unfortunately that doesn't seem to be compatible with the munted version of the IE renderer in Outlook mail. It doesn't even implement a half-decent CSS engine.
    – BlackMael
    Commented Dec 5, 2008 at 7:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.