forked from ulovliglogning/ulovliglogning.dk
Tilføjer ren php mailer for at se om jeg kan fixe signup
This commit is contained in:
parent
8cfe569b28
commit
f43abf4ecb
25
mail.php
Normal file
25
mail.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
$email = $_GET["email"];
|
||||
$lang = "da";
|
||||
|
||||
$to = "ulovliglogning@protonmail.com";
|
||||
$subject = "signup";
|
||||
$body = "email: ".$email."\nlang: ".$lang;
|
||||
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();
|
||||
?>
|
Loading…
Reference in a new issue