diff --git a/mail.php b/mail.php index 02b644a9..5b271a6e 100644 --- a/mail.php +++ b/mail.php @@ -3,16 +3,20 @@ $email = $_GET["email"]; $lang = "da"; - $to = "rasmus@ulovliglogning.dk"; + $to = "rasmusulovliglogning.dk"; $subject = "signup"; $body = "email: ".$email."\nlang: ".$lang; // Report all PHP errors error_reporting(E_ALL); - $a = mail($to, $subject, $body); - print_r($email); - print_r($a); +$fi = file_get_contents("signup.csv"); +$fi.= $email; +file_put_contents("signup.csv",$fi); + //$a = mail($to, $subject, $body); + //print_r($email); + //print_r($a); + // // if (mail($to, $subject, $body)) { // if ($lang == "da") { // $redirect = "https://ulovliglogning.dk/redirect/success/"; diff --git a/signup.csv b/signup.csv new file mode 100644 index 00000000..e69de29b