当我发送带有字符串附件的消息时,打开的字符串附件仅给出 1 并且在电子邮件中显示
--b1_5a1a74831dfa0ce86353d222b95078c6
Content-Type: text/html; name="apperley-invoice-20017.html"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="apperley-invoice-20017.html"
MQ==
--b1_5a1a74831dfa0ce86353d222b95078c6--
我使用此代码添加附件:
$mail->AddStringAttachment($invoicehtml,$filename,'base64','text/html');