如何在Outlook签名中嵌入图像? [英] How to Embed Image in Outlook Signature?

查看:634
本文介绍了如何在Outlook签名中嵌入图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以为 Outlook 2003 或更高版本创建不引用外部图像的HTML电子邮件签名?

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

也就是说,使用那些特殊的"cid"引用,但将图像本身嵌入签名中,而不是文件系统或网络中.

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

这是针对基于用户的各种输入生成标准"电子邮件签名的Web应用程序.到目前为止,使用单个嵌入式"图像效果很好.但是一项新功能将要求可能添加多个小图像.

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.

推荐答案

如果使用file:/// URI引用图像,则Outlook将自动将其更改为cid: URI,并在插入时将其添加为附件.

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?

编辑:好的,考虑到您对问题的更新:恐怕这是不可能的.但是,这不是特定于签名或Outlook的限制.这就是HTML的工作方式.如果要将图像放在HTML文档中,则必须将它们分开.没有专有格式,这是不可能的,Outlook都不会接受它作为签名.

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.

但是,如果这是用于Intranet应用程序,则可以将图像放置在网络共享上并通过UNC进行引用,例如

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

这篇关于如何在Outlook签名中嵌入图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆