【发布时间】:2018-07-06 01:11:23
【问题描述】:
是否可以通过 PHPmailer 为代码添加/更新边界标头
$mail->addStringAttachment($test, 'test.txt', 'quoted-printable');
我需要添加/更新
--b1_KyZbvbrSl55hdWoQf7uUOwdfF2oGjqnCyP6rqNmlA
Content-Type: text/plain; name="test.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename=test.txt
看起来像
--b1_KyZbvbrSl55hdWoQf7uUOwdfF2oGjqnCyP6rqNmlA
Content-Type: text/plain; name="test.txt"; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename=test.txt
Content-ID: 20cca107-2625-49ce-9357-95254a59147f@127.0.0.1
所以对于Content-Type 标头添加了charset 参数,然后添加了新标头Content-ID
有什么建议吗?
【问题讨论】: