mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 16:13:28 +02:00
Added Moodle version number
This commit is contained in:
parent
7868189942
commit
1e411ffc98
1 changed files with 4 additions and 4 deletions
|
@ -907,13 +907,13 @@ function email_to_user($user, $from, $subject, $messagetext, $messagehtml="", $a
|
|||
|
||||
$mail = new phpmailer;
|
||||
|
||||
$mail->Version = "Moodle"; // mailer version
|
||||
$mail->Version = "Moodle $CFG->moodleversion"; // mailer version
|
||||
$mail->PluginDir = "$CFG->libdir/phpmailer/"; // plugin directory (eg smtp plugin)
|
||||
if ($CFG->smtphosts) {
|
||||
$mail->IsSMTP(); // use SMTP directly
|
||||
$mail->Host = "$CFG->smtphosts"; // specify main and backup servers
|
||||
$mail->IsSMTP(); // use SMTP directly
|
||||
$mail->Host = "$CFG->smtphosts"; // specify main and backup servers
|
||||
} else {
|
||||
$mail->IsMail(); // use PHP mail() = sendmail
|
||||
$mail->IsMail(); // use PHP mail() = sendmail
|
||||
}
|
||||
|
||||
$mail->From = "$from->email";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue