From c577e1af6a08a35ca4f95fc5266ac2af7eef340f Mon Sep 17 00:00:00 2001 From: Matteo Scaramuccia Date: Sat, 16 Jan 2016 21:12:03 +0100 Subject: [PATCH] MDL-52637 mail: Disabled automatic TLS encryption. --- lib/phpmailer/moodle_phpmailer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/phpmailer/moodle_phpmailer.php b/lib/phpmailer/moodle_phpmailer.php index b502d4a22a3..b3955ae5a89 100644 --- a/lib/phpmailer/moodle_phpmailer.php +++ b/lib/phpmailer/moodle_phpmailer.php @@ -52,6 +52,8 @@ class moodle_phpmailer extends PHPMailer { global $CFG; $this->Version = 'Moodle '.$CFG->version; // mailer version $this->CharSet = 'UTF-8'; + // MDL-52637: Disable the automatic TLS encryption added in v5.2.10 (9da56fc1328a72aa124b35b738966315c41ef5c6). + $this->SMTPAutoTLS = false; if (!empty($CFG->smtpauthtype)) { $this->AuthType = $CFG->smtpauthtype;