From 584f168074b6996a6f31ff3aec5505737ed7d5e8 Mon Sep 17 00:00:00 2001 From: Tower Date: Tue, 14 Jul 2026 19:07:01 +0200 Subject: [PATCH] enable html in email --- WEBROOT/modules/Mail.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/WEBROOT/modules/Mail.php b/WEBROOT/modules/Mail.php index d5252c5..2fee9d3 100644 --- a/WEBROOT/modules/Mail.php +++ b/WEBROOT/modules/Mail.php @@ -29,9 +29,12 @@ function sendMail($subject, $message, $url, bool $log, $to = "bruno.eckhardt07@g function errorMail($title, $error, bool $log) { $headers = "From: bruno.eckhardt07@gmail.com\r\n"; + $headers .= "MIME-Version: 1.0\r\n"; + $headers .= "Content-Type: text/html; charset=UTF-8\r\n"; + mail( "bruno.eckhardt07@gmail.com", - "ERROR: $title", + "[ERROR] $title", $error, $headers, ); @@ -40,9 +43,9 @@ function errorMail($title, $error, bool $log) "Mailing", "DATUM, SUBJECT, MESSAGE, URL, CLIENT_IP", (new getSpecificData())->getRequestTime(), - "ERROR: $title", + "[ERROR] $title", $error, (new getSpecificData())->getClientIP(), ); } -} +} \ No newline at end of file