简体   繁体   English

PHPMailer内容传输编码

[英]PHPMailer Content-Transfer-Encoding

If I send any mails with Content-Transfer-Encoding: 8bit those mails will actually be sent with Content-Transfer-Encoding: Quoted Printable! 如果我使用Content-Transfer-Encoding:8bit发送任何邮件,这些邮件实际上将使用Content-Transfer-Encoding:Quoted可打印的邮件发送!

I can't find any solution for this, and it's getting frustating. 我找不到任何解决方案,而且越来越令人沮丧。

My phpmailer installation uses 8bit by default. 我的phpmailer安装默认使用8bit。 No need to change anything. 无需更改任何内容。

However if I want "quoted printable", I just add the following code: 但是,如果我想使用“ quoted printable”,则只需添加以下代码:

$mail->Encoding = 'quoted-printable';

One thing to remember: When you want quoted-printable you do not need to pre-encode your text, Phpmailer will encode it for you. 要记住的一件事:当您希望使用引号可打印时,无需对文本进行预编码,Phpmailer会为您编码。

Maybe you can try without defining the encoding and see if it works. 也许您可以尝试不定义编码,然后看看它是否有效。

Maybe 8bitm is not supported, so PHPMailer falls back to qp? 也许不支持8bitm ,所以PHPMailer会退回到qp吗? I'm not sure off the top of my head, but shouldn't it be 8-bit or 8bit ? 我不确定我的头顶是不是8-bit还是8bit

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM