forked from ulovliglogning/ulovliglogning.dk
Forsøger at lave php file_put til signup
This commit is contained in:
parent
fb664724b5
commit
56ae9d1e49
12
mail.php
12
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/";
|
||||
|
|
0
signup.csv
Normal file
0
signup.csv
Normal file
|
Loading…
Reference in a new issue