如何将带有图像(base 64 字符串)的电子邮件中的 html 发送到 Outlook、gmail 等

Posted

技术标签:

【中文标题】如何将带有图像(base 64 字符串)的电子邮件中的 html 发送到 Outlook、gmail 等【英文标题】:How to send html in email with image(base 64 string ) to Outlook, gmail etc 【发布时间】:2015-07-08 22:42:12 【问题描述】:

我已经创建了带有图像(base 64 string)的 html 来发送邮件。 但是在 Outlook 上它不显示图像并且不支持 html。

怎么办,请帮帮我。

谢谢 卡姆莱什

【问题讨论】:

【参考方案1】:

这可能是您正在寻找的答案 - How to create an email with embedded images that is compatible with the most mail clients

注意图片是使用<img src="cid:....">嵌入的

【讨论】:

以上是关于如何将带有图像(base 64 字符串)的电子邮件中的 html 发送到 Outlook、gmail 等的主要内容,如果未能解决你的问题,请参考以下文章

如何将相机捕获的图像转换为带有颤振的base64

我可以将 base64 图像添加到 $_FILES 数组吗?

Base64 图像到 gmail

在电子邮件正文中嵌入 base64 图像

AFNetworking - 向 REST 发送 HTTP POST,发送带有 Base64string 图像的 JSON

如何使用颤振将 Base64 字符串解码为图像文件