Added support to priority in email_to_user(). Bug 2647

(http://moodle.org/bugs/bug.php?op=show&bugid=2647)
This commit is contained in:
stronk7 2005-03-02 17:56:46 +00:00
parent fb89ac81e3
commit 433c8b2e72

View File

@ -3067,6 +3067,10 @@ function email_to_user($user, $from, $subject, $messagetext, $messagehtml='', $a
}
}
if (!empty($from->priority)) {
$mail->Priority = $from->priority;
}
if ($messagehtml && $user->mailformat == 1) { // Don't ever send HTML to users who don't want it
$mail->IsHTML(true);
$mail->Encoding = 'quoted-printable'; // Encoding to use