From 9b8b9ec63bb68748b055c02d0953c4998fe9181b Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Tue, 31 Jan 2023 15:20:37 +0100 Subject: [PATCH] Username/password for for mail model Signed-off-by: Janos SUTO --- webui/model/mail/mail.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/webui/model/mail/mail.php b/webui/model/mail/mail.php index 96926e4d..c9bdb740 100644 --- a/webui/model/mail/mail.php +++ b/webui/model/mail/mail.php @@ -52,11 +52,8 @@ class ModelMailMail extends Model { unset($config['ssl']); try { - - if ($username != "" && $password != "") { + if($config['username'] && $config['password']) { $config['auth'] = 'login'; - $config['username'] = $username; - $config['password'] = $password; $connection = new Zend_Mail_protocol_Smtp_Auth_Login($smtphost, $smtpport, $config); } else { $connection = new Zend_Mail_protocol_Smtp($smtphost, $smtpport, $config);