右键点击下载图片,保护您的隐私前景,防止自动下载此图片 [英] Right click to download pictures, to protect your privacy outlook prevent automatic downloads of this picture
问题描述
如何在html中发送图片,以免影响展示效果?我有一个用于发送电子邮件的python脚本,电子邮件包含页眉和页脚图像,但outlook会阻止显示该图像并以下面的错误将其阻止:
右键点击下载图片,保护您的隐私前景
防止自动下载此图片。
Html代码如下所示:
< img width = 709 height = 131 id =_ x0000_i1025src ='。/ static /img/h.jpg'/>
什么代码可以帮助我,所以outlook不会阻止图片?
首先,您的图片使用相对URL(uris),因此它们将永远不会在电子邮件中发挥作用。
其次,您需要将图像作为MIME部分添加到消息中,并使用cid引用它们,例如< img src =cid:MyCid>,
其中 MyCid
是Content-Id MIME图像MIME部分的标题。
How to send image in html so outlook would not prevent showing that? I have a python script which I use with sending email, The email contains header and footer image but outlook prevent showing that image and blocks it with below error:
Right click to download pictures, to protect your privacy outlook prevent automatic downloads of this picture.
the Html code is like below:
<img width=709 height=131 id="_x0000_i1025" src='./static/img/h.jpg' />
what code helps me, so outlook would not prevent images?
Firstly, your images use relative urls (uris), so they will never work in an email.
Secondly, you need to add the images as MIME parts to the message and refer to them using a cid, e.g. <img src="cid:MyCid">,
where MyCid
is the value of the Content-Id MIME header on the image MIME part.
这篇关于右键点击下载图片,保护您的隐私前景,防止自动下载此图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!