Merge pull request #64 from devzwf/Fix-email-notification

This commit is contained in:
Miguel Ribeiro 2023-11-23 22:28:57 +01:00 committed by GitHub
commit 6e5bbc46b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@
$smtpPort = $row["smtp_port"]; $smtpPort = $row["smtp_port"];
$smtpUsername = $row["smtp_username"]; $smtpUsername = $row["smtp_username"];
$smtpPassword = $row["smtp_password"]; $smtpPassword = $row["smtp_password"];
$fromEmail = $row["fromEmail"] ?? "wallos@wallosapp.com"; $fromEmail = $row["from_email"] ?? "wallos@wallosapp.com";
} else { } else {
echo "Notifications are disabled. No need to run."; echo "Notifications are disabled. No need to run.";
} }
@ -87,4 +87,4 @@
} }
} }
?> ?>

View File

@ -31,7 +31,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
$smtpPort = $data["smtpport"]; $smtpPort = $data["smtpport"];
$smtpUsername = $data["smtpusername"]; $smtpUsername = $data["smtpusername"];
$smtpPassword = $data["smtppassword"]; $smtpPassword = $data["smtppassword"];
$fromEmail = $data["fromEmail"] ?? "wallos@wallosapp.com"; $fromEmail = $data["fromemail"] ?? "wallos@wallosapp.com";
$mail = new PHPMailer(true); $mail = new PHPMailer(true);
$mail->isSMTP(); $mail->isSMTP();