MDL-52637 mail: Disabled automatic TLS encryption.

This commit is contained in:
Matteo Scaramuccia
2016-02-04 21:18:34 +01:00
committed by Matteo Scaramuccia
parent 22fa1056d7
commit c577e1af6a
+2
View File
@@ -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;