我已经阅读了有关图片和邮寄的几个主题,但我很难理解这一点。
我将带有PHP的邮件发送给有图像的用户,它发送邮件,显示有图像,但图像已损坏。
如果收到任何错误,有人可以查看我的撰写邮件吗?
在加载此图片之前,我按getimagesize
检查了其类型,并显示img/png
感谢任何帮助或建议。
Subject: Screenshot compare of project: xxx
Content-Type: multipart/mixed;
boundary="multipart_related_boundary"
To: xxx@gmail.com
From: xxx@gmail.com
Subject: Screenshot compare of project: xxx
X-Mailer: PHP/5.4.20
This is a multi-part message in MIME format.
--multipart_related_boundary
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<html>
<head>
<title>Screenshot compare of project: static</title>
</head>
<body>
<p>We have found: 1 differances</p>
<p>chrometestBodyText.jpg</p>
<img alt="diffchrometestBodyText" src="cid:multipart_related_boundarydiffchrometestBodyText" />
</body>
</html>
--multipart_related_boundary
Content-ID: <multipart_related_boundarydiffchrometestBodyText>
Content-Type: image/png;
name=diffchrometestBodyText.png
Content-Transfer-Encoding: BASE64