如何在HTML电子邮件中嵌入图像以便显示? [英] How do I embed images in HTML email so that it displays?
本文介绍了如何在HTML电子邮件中嵌入图像以便显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我使用交换服务器发送电子邮件,我选择的电子邮件正文格式是HTML。
在电子邮件正文中我已嵌入多个图像或在电子邮件正文中有许多内嵌图像。
谢谢
Anis
我尝试了什么:
为了实现这一点,我使用了base64 ecoded data url作为图像链接。
但问题是它在发送后没有显示图像。
请尽快帮助,因为我处于死机状态。
Hi
I am sending email using exchange server and the email body format I choosen is HTML.
In the email body I've embedded several images or in email body there are many inline images .
Thanks
Anis
What I have tried:
To accomplish this I've used base64 ecoded data url as image link.
But the problem is its not displaying images after sent.
Please help ASAP as I am in a dead line.
推荐答案
检查这些链接,
1. 如何将图像直接嵌入到HTML中Techerator [ ^ ]
2. HTML电子邮件中的嵌入式图像支持| Campaign Monitor [ ^ ]
3. 包含数据的内嵌图像网址 - 使用数据uri方案嵌入图形内容 [ ^ ]
Check these links,
1. How To Embed Images Directly Into Your HTML | Techerator[^]
2. Embedded image support in HTML email | Campaign Monitor[^]
3. Inline Images with Data URLs - embed graphics inline with data uri scheme[^]
即使您将图像作为Base64数据而非URL发送,也无法确保图像在电子邮件中可见 - 许多电子邮件阅读器不会自动显示图像,部分原因是URL图像为网络钓鱼者提供了识别活动电子邮件地址的方式。
这似乎是最成功的方式:重新访问嵌入图片 - Campaign Monitor | Campaign Monitor [ ^ ] - 但它仍无法在所有情况下都有效。
You can't ensure that an image is visible in an email, even if you send it as Base64 data, not a URL - many email readers don't display images automatically, partly because URL images provide a way for phishers to identify "active" email addresses.
This seems to be the most successful way: Embedding images revisited - Campaign Monitor | Campaign Monitor[^] - but it still doesn't work in all cases.
这篇关于如何在HTML电子邮件中嵌入图像以便显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文