Update Email.php

Adding debugging and option to chose wheter auth is TRUE or FALSE
This commit is contained in:
cbka 2021-03-27 19:38:42 +01:00 committed by GitHub
parent 1700605b7b
commit 1994184a88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -315,8 +315,9 @@ class Email {
if ($this->config['protocol'] === 'smtp')
{
$mailer->isSMTP();
$mailer->SMTPDebug = $this->config['smtp_debug'];
$mailer->Host = $this->config['smtp_host'];
$mailer->SMTPAuth = TRUE;
$mailer->SMTPAuth = $this->config['smtp_auth'];
$mailer->Username = $this->config['smtp_user'];
$mailer->Password = $this->config['smtp_pass'];
$mailer->SMTPSecure = $this->config['smtp_crypto'];