From 7e018ae0c6fae01577f310b734c4bd5e73cbdd41 Mon Sep 17 00:00:00 2001 From: Rasmus Malver Date: Mon, 26 Apr 2021 17:00:18 +0200 Subject: [PATCH] =?UTF-8?q?Fors=C3=B8ger=20stadig=20at=20fixe=20mail=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mail.php | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/mail.php b/mail.php index c8e8bf3c..06d6bc1b 100644 --- a/mail.php +++ b/mail.php @@ -9,19 +9,22 @@ $lang = "da"; // Report all PHP errors error_reporting(E_ALL); - if (mail($to, $subject, $body)) { - if ($lang == "da") { - $redirect = "https://ulovliglogning.dk/redirect/success/"; - } else { - $redirect = "https://ulovliglogning.dk/".$lang."/redirect/success/"; - } - } else { - if ($lang == "da") { - $redirect = "https://ulovliglogning.dk/redirect/fail/"; - } else { - $redirect = "https://ulovliglogning.dk/".$lang."/redirect/fail/"; - } - } + mail($to, $subject, $body); + print_r($email); + + // if (mail($to, $subject, $body)) { + // if ($lang == "da") { + // $redirect = "https://ulovliglogning.dk/redirect/success/"; + // } else { + // $redirect = "https://ulovliglogning.dk/".$lang."/redirect/success/"; + // } + // } else { + // if ($lang == "da") { + // $redirect = "https://ulovliglogning.dk/redirect/fail/"; + // } else { + // $redirect = "https://ulovliglogning.dk/".$lang."/redirect/fail/"; + // } + // } # header('Location: '.$redirect); # die();