getRequestTime(), $subject, $message, $url, (new getSpecificData())->getClientIP(), ); } } function errorMail($title, $error, bool $log) { $headers = "From: bruno.eckhardt07@gmail.com\r\n"; mail( "bruno.eckhardt07@gmail.com", "ERROR: $title", $error, $headers, ); if ($log == true) { DatabaseInsert( "Mailing", "DATUM, SUBJECT, MESSAGE, URL, CLIENT_IP", (new getSpecificData())->getRequestTime(), "ERROR: $title", $error, (new getSpecificData())->getClientIP(), ); } }