Forsøger stadig at fixe mail 2
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Rasmus Malver 2021-04-26 17:00:18 +02:00
parent 45c4b366de
commit 7e018ae0c6

View file

@ -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();