在HTML电子邮件中嵌入附加的图像 [英] Embedding attached images in HTML emails
问题描述
如果我将图像附加到电子邮件中,我该怎么把它放在HTML内容中?我尝试使用文件名作为图像源,但似乎不起作用。
If I attach an image to an email, how can I place it in the HTML content? I tried just using the filename as the image source but that doesn't seem to work.
推荐答案
更具体地说明如何构建HTML邮件消息。
Be more specific on how you build the HTML mail message.
结果将是一个带有text / html部分的多部分MIME消息(如果你真的做了正确的类型文本的替代部分/ plain)和几个图像,然后从HTML中引用。
The result will be a multipart-MIME message with a text/html part (if you really do it right with an alternate part of type text/plain) and several images, which are then referenced from within the HTML.
请参阅 RFC 1813 和 RFC 2378 有关混合MIME和相关数据中的content-id的更多信息(由HTML源代码引用)。
See RFC 1813 and RFC 2378 for more information about content-id in mixed MIME and related data (referred by CID in the HTML source).
这篇关于在HTML电子邮件中嵌入附加的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!