mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-30960 messages: add option to set authtype
This commit is contained in:
parent
803f565753
commit
2108ac8a4f
3 changed files with 8 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue