fix get smtp parameters

This commit is contained in:
Uwe Steinmann 2023-02-27 19:36:14 +01:00
parent 4bfdc9cbf5
commit 245092bb10

View File

@ -277,10 +277,10 @@ foreach($users as $user) {
$mail_params = array();
if($settings->_smtpServer) {
$mail_params['host'] = $settings->_smtpServer;
if($settings->smtpPort) {
if($settings->_smtpPort) {
$mail_params['port'] = $settings->_smtpPort;
}
if($settings->smtpUser) {
if($settings->_smtpUser) {
$mail_params['auth'] = true;
$mail_params['username'] = $settings->_smtpUser;
$mail_params['password'] = $settings->_smtpPassword;