How to Embed Image in Outlook Signature?

房东的猫 提交于 2019-12-05 01:36:34

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" />
Adam Patterson

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

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!