Permalink
Browse files

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

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