* new configurable: smtp_secure

* as described in #43 by miqueiaspenha
This commit is contained in:
slawkens1 2018-01-29 23:11:17 +01:00
parent 168df5d4e2
commit 04dca2f274
2 changed files with 2 additions and 0 deletions

View File

@ -106,6 +106,7 @@ $config = array(
'smtp_auth' => true, // need authorization?
'smtp_user' => 'admin@example.org',
'smtp_pass' => '',
'smtp_secure' => '', // What kind of encryption to use on the SMTP connection. Options: '', 'ssl' or 'tls', use 'ssl' for gmail
// reCAPTCHA (prevent spam bots)
'recaptcha_enabled' => false, // enable recaptcha verification code

View File

@ -819,6 +819,7 @@ function _mail($to, $subject, $body, $altBody = '', $add_html_tags = true)
$mailer->SMTPAuth = $config['smtp_auth'];
$mailer->Username = $config['smtp_user'];
$mailer->Password = $config['smtp_pass'];
$mailer->SMTPSecure = isset($config['smtp_secure']) ? $config['smtp_secure'] : '';
}
else
$mailer->IsMail();