Use the "correct" way of encoding HTML (quoted-printable) instead of
warapping it like text (which was working, but...).
This commit is contained in:
@@ -818,6 +818,7 @@ function email_to_user($user, $from, $subject, $messagetext, $messagehtml="", $a
|
||||
|
||||
if ($messagehtml) {
|
||||
$mail->IsHTML(true);
|
||||
$mail->Encoding = "quoted-printable"; // Encoding to use
|
||||
$mail->Body = $messagehtml;
|
||||
$mail->AltBody = "\n$messagetext\n";
|
||||
} else {
|
||||
|
||||
@@ -750,6 +750,7 @@ class PHPMailer
|
||||
// fall through
|
||||
case "alt_attachment":
|
||||
$this->AltBody = $this->WrapText($this->AltBody, $this->WordWrap);
|
||||
break;
|
||||
default:
|
||||
$this->Body = $this->WrapText($this->Body, $this->WordWrap);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user