PHP - QR图像HTML电子邮件 [英] PHP - QR Image HTML Email

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

问题描述

这是一个旧帖子。请参阅此帖子当前问题

This is an old post. Please refer to this post for current issue

推荐答案

您不能将base64 src转储到电子邮件的正文中,您必须像附件一样对待它。使用内容标题代替src。以下是Gmail的Gmail代码片段。

You can't dump the base64 src into the body of the email, you have to treat it like an attachment. Use a content header in place of the src. Here's a snippet of how gmail does it.

电子邮件内容头

Content-Type: image/png; name="InlineImage.png"
Content-Disposition: inline; filename="InlineImage.png"
Content-Transfer-Encoding: base64
Content-ID: <ii_ikqclluk0_152ed84122ba57fd>
X-Attachment-Id: ii_ikqclluk0_152ed84122ba57fd

--base64 here--

HTML

<img src="cid:ii_ikqclluk0_152ed84122ba57fd">

这篇关于PHP - QR图像HTML电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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