Skip to content

Commit

Permalink
Merge pull request #64 from devzwf/Fix-email-notification
Browse files Browse the repository at this point in the history
  • Loading branch information
ellite authored Nov 23, 2023
2 parents 2dd1710 + 3d83298 commit 6e5bbc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions endpoints/cronjobs/sendnotifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
}
Expand Down Expand Up @@ -87,4 +87,4 @@
}

}
?>
?>
2 changes: 1 addition & 1 deletion endpoints/notifications/sendtestmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6e5bbc4

Please sign in to comment.