feat: allow selecting tls or ssl for email notifications (#237)

This commit is contained in:
Miguel Ribeiro
2024-03-17 22:56:30 +01:00
committed by GitHub
parent e1cc9254ac
commit 2462435743
19 changed files with 63 additions and 7 deletions
+2 -1
View File
@@ -14,6 +14,7 @@
$days = $row['days'];
$smtpAddress = $row["smtp_address"];
$smtpPort = $row["smtp_port"];
$encryption = $row["encryption"];
$smtpUsername = $row["smtp_username"];
$smtpPassword = $row["smtp_password"];
$fromEmail = $row["from_email"] ? $row["from_email"] : "wallos@wallosapp.com";
@@ -76,7 +77,7 @@
$mail->SMTPAuth = true;
$mail->Username = $smtpUsername;
$mail->Password = $smtpPassword;
$mail->SMTPSecure = 'tls';
$mail->SMTPSecure = $encryption;
$mail->Port = $smtpPort;
$stmt = $db->prepare('SELECT * FROM household WHERE id = :userId');