mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Set the character set of email to be the same as the default language
This commit is contained in:
parent
db5b2eaa17
commit
98c4eae3ac
@ -1577,6 +1577,11 @@ function email_to_user($user, $from, $subject, $messagetext, $messagehtml="", $a
|
||||
$mail->Version = "Moodle $CFG->version"; // mailer version
|
||||
$mail->PluginDir = "$CFG->libdir/phpmailer/"; // plugin directory (eg smtp plugin)
|
||||
|
||||
|
||||
if ($CFG->lang != "en") {
|
||||
$mail->Charset = get_string("thischarset");
|
||||
}
|
||||
|
||||
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