forked from ulovliglogning/ulovliglogning.dk
Forsøger stadig at fixe mail 2
This commit is contained in:
parent
45c4b366de
commit
7e018ae0c6
29
mail.php
29
mail.php
|
@ -9,19 +9,22 @@ $lang = "da";
|
||||||
// Report all PHP errors
|
// Report all PHP errors
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
|
|
||||||
if (mail($to, $subject, $body)) {
|
mail($to, $subject, $body);
|
||||||
if ($lang == "da") {
|
print_r($email);
|
||||||
$redirect = "https://ulovliglogning.dk/redirect/success/";
|
|
||||||
} else {
|
// if (mail($to, $subject, $body)) {
|
||||||
$redirect = "https://ulovliglogning.dk/".$lang."/redirect/success/";
|
// if ($lang == "da") {
|
||||||
}
|
// $redirect = "https://ulovliglogning.dk/redirect/success/";
|
||||||
} else {
|
// } else {
|
||||||
if ($lang == "da") {
|
// $redirect = "https://ulovliglogning.dk/".$lang."/redirect/success/";
|
||||||
$redirect = "https://ulovliglogning.dk/redirect/fail/";
|
// }
|
||||||
} else {
|
// } else {
|
||||||
$redirect = "https://ulovliglogning.dk/".$lang."/redirect/fail/";
|
// if ($lang == "da") {
|
||||||
}
|
// $redirect = "https://ulovliglogning.dk/redirect/fail/";
|
||||||
}
|
// } else {
|
||||||
|
// $redirect = "https://ulovliglogning.dk/".$lang."/redirect/fail/";
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
# header('Location: '.$redirect);
|
# header('Location: '.$redirect);
|
||||||
# die();
|
# die();
|
||||||
|
|
Loading…
Reference in a new issue