【发布时间】:2019-02-19 04:12:30
【问题描述】:
我已经生成了这个通过 aws-ses 发送的 MIME 数据。在整个 MIME 数据中
Content-Type: multipart/mixed;boundary=T4nu9J8b
From: <noreply@noreply.in>
To: <myemail@gmail.com>
Subject: Your Image
--T4nu9J8b
Content-Type: multipart/alternate;boundary=R5I0TJcF
--R5I0TJcF
Content-Type: text/html;charset=utf-8
<h1> Hi!!! </h1><p>Here is your progress report </p><br/> <img alt="Embedded Image" src="cid:testimage.png"/>
--R5I0TJcF
Content-Type: text/plain;charset=utf-8
This is the plain text version of the message.
--R5I0TJcF--
--T4nu9J8b
Content-Type: image/png
Content-Transfer-Encoding: base64
Content-Disposition: attachment ;filename="testimage.png"
iVBORw0KGgoAAAANS...
--T4nu9J8b--
我收到了电子邮件,但图像未嵌入 MIME 的 html 部分 img 标签链接到附件
HTML 代码
<img alt="Embedded Image" src="cid:testimage.png"/>
MIME 附件
--T4nu9J8b Content-Type: image/png Content-Transfer-Encoding: base64 Content-Disposition: attachment ;filename="testimage.png"
iVBORw0KGgoAAAANS...
--T4nu9J8b--
结果电子邮件
【问题讨论】:
标签: amazon-web-services email mime amazon-ses