ulovliglogning.dk/mail.php
Rasmus Malver 45c4b366de
All checks were successful
continuous-integration/drone/push Build is passing
Forsøger stadig at fixe mail
2021-04-26 16:52:39 +02:00

28 lines
635 B
PHP

<?php
$email = $_GET["email"];
$lang = "da";
$to = "rama-testulovliglogning@malver.dk";
$subject = "signup";
$body = "email: ".$email."\nlang: ".$lang;
// 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/";
}
}
# header('Location: '.$redirect);
# die();
?>