Skip to content

Commit

Permalink
Don't change charset when changing transfer encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Apr 30, 2015
1 parent c78ba0c commit b3577cf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions class.phpmailer.php
Expand Up @@ -1901,7 +1901,6 @@ public function createBody()
if (self::hasLineLongerThanMax($this->Body)) {
$this->Encoding = 'quoted-printable';
$bodyEncoding = 'quoted-printable';
$bodyCharSet = 'us-ascii'; //qp always fits into ascii
}

$altBodyEncoding = $this->Encoding;
Expand All @@ -1914,7 +1913,6 @@ public function createBody()
//If lines are too long, change to quoted-printable transfer encoding
if (self::hasLineLongerThanMax($this->AltBody)) {
$altBodyEncoding = 'quoted-printable';
$altBodyCharSet = 'us-ascii';
}
//Use this as a preamble in all multipart message types
$mimepre = "This is a multi-part message in MIME format." . $this->LE . $this->LE;
Expand Down

0 comments on commit b3577cf

Please sign in to comment.