From 125898afd2d37cfc87f4b91b448fe09f96c80f2a Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 8 Aug 2003 03:39:25 +0000 Subject: [PATCH] Use the "correct" way of encoding HTML (quoted-printable) instead of warapping it like text (which was working, but...). --- lib/moodlelib.php | 1 + lib/phpmailer/class.phpmailer.php | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index a3d3e52940..5c5a31efcd 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -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 { diff --git a/lib/phpmailer/class.phpmailer.php b/lib/phpmailer/class.phpmailer.php index b423a3c067..6fba6f3192 100644 --- a/lib/phpmailer/class.phpmailer.php +++ b/lib/phpmailer/class.phpmailer.php @@ -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; -- 2.39.5