MARY
MARY

Reputation: 41

PHPMailer changing Content-transfer-encoding

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??

Upvotes: 2

Views: 2438

Answers (1)

Synchro
Synchro

Reputation: 37710

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.

Upvotes: 2

Related Questions