PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, February 12, 2022

[FIXED] PHPMailer changing Content-transfer-encoding

 February 12, 2022     email, encoding, php, phpmailer     No comments   

Issue

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


Solution

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.



Answered By - Synchro
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing