diff --git a/class.phpmailer.php b/class.phpmailer.php index e4dd00bf..2e284b21 100644 --- a/class.phpmailer.php +++ b/class.phpmailer.php @@ -2120,8 +2120,9 @@ class PHPMailer $altBodyEncoding = '7bit'; $altBodyCharSet = 'us-ascii'; } - //If lines are too long, change to quoted-printable transfer encoding - if (self::hasLineLongerThanMax($this->AltBody)) { + //If lines are too long, and we're not already using an encoding that will shorten them, + //change to quoted-printable transfer encoding + if ('base64' != $altBodyEncoding and self::hasLineLongerThanMax($this->AltBody)) { $altBodyEncoding = 'quoted-printable'; } //Use this as a preamble in all multipart message types