mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Make mail format explicitly 8bit
This commit is contained in:
parent
a5a4cd60cb
commit
562bbe9074
@ -1260,6 +1260,8 @@ function email_to_user($user, $from, $subject, $messagetext, $messagehtml="", $a
|
||||
|
||||
$mail->Version = "Moodle $CFG->moodleversion"; // mailer version
|
||||
$mail->PluginDir = "$CFG->libdir/phpmailer/"; // plugin directory (eg smtp plugin)
|
||||
$mail->Encoding = "8bit"; // encoding format - should work in most places
|
||||
|
||||
if ($CFG->smtphosts) {
|
||||
$mail->IsSMTP(); // use SMTP directly
|
||||
$mail->Host = "$CFG->smtphosts"; // specify main and backup servers
|
||||
|
Loading…
x
Reference in New Issue
Block a user