Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added Moodle version number

  • Loading branch information...
commit 1e411ffc985c57daf8329f4f21c9c542ced52271 1 parent 7868189
martin authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/moodlelib.php
View
8 lib/moodlelib.php
@@ -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";
Please sign in to comment.
Something went wrong with that request. Please try again.