Use the "correct" way of encoding HTML (quoted-printable) instead of

warapping it like text (which was working, but...).
This commit is contained in:
moodler
2003-08-08 03:39:25 +00:00
parent 0351b1f9f4
commit 125898afd2
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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 {
+1
View File
@@ -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;