简体   繁体   中英

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!

I can't find any solution for this, and it's getting frustating.

My phpmailer installation uses 8bit by default. No need to change anything.

However if I want "quoted printable", I just add the following code:

$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.

Maybe you can try without defining the encoding and see if it works.

Maybe 8bitm is not supported, so PHPMailer falls back to qp? I'm not sure off the top of my head, but shouldn't it be 8-bit or 8bit ?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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