3 回答

TA贡献2041条经验 获得超4个赞
我没有发现任何有用的答案,所以我提供了我的解决方案。
问题是您使用multipart/related的内容类型在这种情况下并不好。我在multipart/mixed里面使用它multipart/alternative(它适用于大多数客户端)。
消息结构应如下所示:
[Headers]
Content-type:multipart/mixed; boundary="boundary1"
--boundary1
Content-type:multipart/alternative; boundary="boundary2"
--boundary2
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit
[HTML code with a href="cid:..."]
--boundary2
Content-Type: image/png;
name="moz-screenshot.png"
Content-Transfer-Encoding: base64
Content-ID: <part1.06090408.01060107>
Content-Disposition: inline; filename="moz-screenshot.png"
[base64 image data here]
--boundary2--
--boundary1--
然后它会工作
添加回答
举报