问题
This is an old post. Please refer to this post for current issue
回答1:
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.
Email Content Header
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">
来源:https://stackoverflow.com/questions/35442997/php-qr-image-html-email