diff --git a/endpoints/cronjobs/sendnotifications.php b/endpoints/cronjobs/sendnotifications.php index 1632f83c0..719a3d415 100644 --- a/endpoints/cronjobs/sendnotifications.php +++ b/endpoints/cronjobs/sendnotifications.php @@ -16,7 +16,7 @@ $smtpPort = $row["smtp_port"]; $smtpUsername = $row["smtp_username"]; $smtpPassword = $row["smtp_password"]; - $fromEmail = $row["fromEmail"] ?? "wallos@wallosapp.com"; + $fromEmail = $row["from_email"] ?? "wallos@wallosapp.com"; } else { echo "Notifications are disabled. No need to run."; } @@ -87,4 +87,4 @@ } } -?> \ No newline at end of file +?> diff --git a/endpoints/notifications/sendtestmail.php b/endpoints/notifications/sendtestmail.php index 14625443a..80072cf78 100644 --- a/endpoints/notifications/sendtestmail.php +++ b/endpoints/notifications/sendtestmail.php @@ -31,7 +31,7 @@ $smtpPort = $data["smtpport"]; $smtpUsername = $data["smtpusername"]; $smtpPassword = $data["smtppassword"]; - $fromEmail = $data["fromEmail"] ?? "wallos@wallosapp.com"; + $fromEmail = $data["fromemail"] ?? "wallos@wallosapp.com"; $mail = new PHPMailer(true); $mail->isSMTP();