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"];
|
$email = $_GET["email"];
|
||||||
$lang = "da";
|
$lang = "da";
|
||||||
|
|
||||||
$to = "rasmus@ulovliglogning.dk";
|
$to = "rasmusulovliglogning.dk";
|
||||||
$subject = "signup";
|
$subject = "signup";
|
||||||
$body = "email: ".$email."\nlang: ".$lang;
|
$body = "email: ".$email."\nlang: ".$lang;
|
||||||
// Report all PHP errors
|
// Report all PHP errors
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
|
|
||||||
$a = mail($to, $subject, $body);
|
$fi = file_get_contents("signup.csv");
|
||||||
print_r($email);
|
$fi.= $email;
|
||||||
print_r($a);
|
file_put_contents("signup.csv",$fi);
|
||||||
|
|
||||||
|
//$a = mail($to, $subject, $body);
|
||||||
|
//print_r($email);
|
||||||
|
//print_r($a);
|
||||||
|
//
|
||||||
// if (mail($to, $subject, $body)) {
|
// if (mail($to, $subject, $body)) {
|
||||||
// if ($lang == "da") {
|
// if ($lang == "da") {
|
||||||
// $redirect = "https://ulovliglogning.dk/redirect/success/";
|
// $redirect = "https://ulovliglogning.dk/redirect/success/";
|
||||||
|
|
0
signup.csv
Normal file
0
signup.csv
Normal file
|
Loading…
Reference in a new issue