MDL-30960 messages: add option to set authtype
This commit is contained in:
@@ -53,6 +53,10 @@ class moodle_phpmailer extends PHPMailer {
|
||||
$this->Version = 'Moodle '.$CFG->version; // mailer version
|
||||
$this->CharSet = 'UTF-8';
|
||||
|
||||
if (!empty($CFG->smtpauthtype)) {
|
||||
$this->AuthType = $CFG->smtpauthtype;
|
||||
}
|
||||
|
||||
// Some MTAs may do double conversion of LF if CRLF used, CRLF is required line ending in RFC 822bis.
|
||||
if (isset($CFG->mailnewline) and $CFG->mailnewline == 'CRLF') {
|
||||
$this->LE = "\r\n";
|
||||
|
||||
Reference in New Issue
Block a user