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??
Advertisement
Answer
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.