Skip to content

Commit

Permalink
Set the character set of email to be the same as the default language
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Nov 14, 2002
1 parent db5b2ea commit 98c4eae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/moodlelib.php
Expand Up @@ -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
Expand Down

0 comments on commit 98c4eae

Please sign in to comment.