在HTML电子邮件中嵌入附加的图像 [英] Embedding attached images in HTML emails

查看:160
本文介绍了在HTML电子邮件中嵌入附加的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我将图像附加到电子邮件中,我该怎么把它放在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屋!

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