This commit is contained in:
Bruno Eckhardt committed 2026-07-07 10:07:22 +02:00
1 parent 771f9e7bf6
commit 52446cc019
2 files changed
+9 -4

No files matched your search

+2
View File
@@ -63,6 +63,8 @@ foreach ($termine as $termin) {
$benutzer["EMAIL"],
);
print_r("{$benutzer["EMAIL"]}\n{$message}");
DatabaseUpdate(
"Termine",
"ERINNERUNG_AM = ?",
+7 -4
View File
@@ -3,7 +3,8 @@
include_once __DIR__ . '/../controller/DatabaseController.php';
include_once __DIR__ . '/../controller/DataController.php';
function sendMail($subject, $message, $url, bool $log, $to = "bruno.eckhardt07 qmail.com") {
function sendMail($subject, $message, $url, bool $log, $to = "bruno.eckhardt07 qmail.com")
{
$headers = "From: bruno.eckhardt07@gmail.com\r\n";
mail(
$to,
@@ -14,17 +15,19 @@ function sendMail($subject, $message, $url, bool $log, $to = "bruno.eckhardt07 q
if ($log == true) {
DatabaseInsert(
"Mailing",
"DATUM, SUBJECT, MESSAGE, URL, CLIENT_IP",
"DATUM, SUBJECT, MESSAGE, MAIL_AN, URL, CLIENT_IP",
(new getSpecificData())->getRequestTime(),
$subject,
$message,
$to,
$url,
(new getSpecificData())->getClientIP(),
);
}
}
function errorMail($title, $error, bool $log) {
function errorMail($title, $error, bool $log)
{
$headers = "From: bruno.eckhardt07@gmail.com\r\n";
mail(
"bruno.eckhardt07@gmail.com",
@@ -42,4 +45,4 @@ function errorMail($title, $error, bool $log) {
(new getSpecificData())->getClientIP(),
);
}
}
}