Cron mail queue - fix $config_smtp_encryption being set to None in IF statement

This commit is contained in:
Marcus Hill 2025-05-27 14:46:50 +01:00
parent c486682a0e
commit 40eb40fd86
1 changed files with 5 additions and 5 deletions

View File

@ -705,7 +705,7 @@ function sendSingleEmail($config_smtp_host, $config_smtp_username, $config_smtp_
$mail->SMTPAuth = $smtp_auth; // Enable SMTP authentication $mail->SMTPAuth = $smtp_auth; // Enable SMTP authentication
$mail->Username = $config_smtp_username; // SMTP username $mail->Username = $config_smtp_username; // SMTP username
$mail->Password = $config_smtp_password; // SMTP password $mail->Password = $config_smtp_password; // SMTP password
if ($config_smtp_encryption = 'None') { if ($config_smtp_encryption == 'None') {
$mail->SMTPOptions = array( $mail->SMTPOptions = array(
'ssl' => array( 'ssl' => array(
'verify_peer' => false, 'verify_peer' => false,