]> git.mjollnir.org Git - moodle.git/commitdiff
Use the "correct" way of encoding HTML (quoted-printable) instead of
authormoodler <moodler>
Fri, 8 Aug 2003 03:39:25 +0000 (03:39 +0000)
committermoodler <moodler>
Fri, 8 Aug 2003 03:39:25 +0000 (03:39 +0000)
warapping it like text (which was working, but...).

lib/moodlelib.php
lib/phpmailer/class.phpmailer.php

index a3d3e52940936c1cabb15e2dd48ff8101667590c..5c5a31efcdeba1b419488a0724a86967b72b28de 100644 (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 {
index b423a3c0676f66048af5963d6a9b1a5426c6707e..6fba6f31922334cfcbb2557574e8ecbb9234ffce 100644 (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;