I'm developing a program which uses PHPMailer.
I want to change "Content-transfer-encoding" in header of email.
Here is my eml format email header sample.
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
BUT I want to change "quoted-printable" to "base64"
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: base64
Is there any solution change encoding??
You could try reading the documentation , or looking at the source code. In short, do this:
$mail->Encoding = 'base64';
But I wouldn't advise doing this; base64-encoded HTML bodies make you look like a spammer.
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.