mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-11378 Add SMTP security protocol setting to email configuration
This commit is contained in:
parent
23778a4dfa
commit
70ad827c6c
3 changed files with 8 additions and 2 deletions
|
@ -5005,6 +5005,7 @@ function get_mailer($action='get') {
|
|||
$mailer->SMTPDebug = true;
|
||||
}
|
||||
$mailer->Host = $CFG->smtphosts; // specify main and backup servers
|
||||
$mailer->SMTPSecure = $CFG->smtpsecure; // specify secure connection protocol
|
||||
$mailer->SMTPKeepAlive = $prevkeepalive; // use previous keepalive
|
||||
|
||||
if ($CFG->smtpuser) { // Use SMTP authentication
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue