Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 98c4eae3ace4979575258672e28ddcbe104c63ac 1 parent db5b2ea
moodler authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/moodlelib.php
View
5 lib/moodlelib.php
@@ -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

0 comments on commit 98c4eae

Please sign in to comment.
Something went wrong with that request. Please try again.