From 1994184a8853f027f2717276795f7095636deebb Mon Sep 17 00:00:00 2001 From: cbka Date: Sat, 27 Mar 2021 19:38:42 +0100 Subject: [PATCH] Update Email.php Adding debugging and option to chose wheter auth is TRUE or FALSE --- engine/Notifications/Email.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/Notifications/Email.php b/engine/Notifications/Email.php index 5a4a1379..9e607d38 100755 --- a/engine/Notifications/Email.php +++ b/engine/Notifications/Email.php @@ -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'];