Make mail format explicitly 8bit

This commit is contained in:
martin 2002-09-21 08:39:54 +00:00
parent a5a4cd60cb
commit 562bbe9074

View File

@ -1260,6 +1260,8 @@ function email_to_user($user, $from, $subject, $messagetext, $messagehtml="", $a
$mail->Version = "Moodle $CFG->moodleversion"; // mailer version
$mail->PluginDir = "$CFG->libdir/phpmailer/"; // plugin directory (eg smtp plugin)
$mail->Encoding = "8bit"; // encoding format - should work in most places
if ($CFG->smtphosts) {
$mail->IsSMTP(); // use SMTP directly
$mail->Host = "$CFG->smtphosts"; // specify main and backup servers