Set the character set of email to be the same as the default language

This commit is contained in:
moodler 2002-11-14 11:45:14 +00:00
parent db5b2eaa17
commit 98c4eae3ac

View File

@ -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