mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
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:
parent
fb89ac81e3
commit
433c8b2e72
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user