//print_r($_POST);
// ====================== Customization END ======================== //
$emailSend = false;
// if the url field is empty
if (isset($_POST['url']) && $_POST['url'] == '') {
$userInfo = "Sender IP: ".$_SERVER['REMOTE_ADDR'];
$userInfo .= "\nPHP User Agent: ".$_SERVER['HTTP_USER_AGENT'];
$userInfo .= "\nJS User Agent: ".$_POST['contact_userAgent'];
$userInfo .= "\nJS App Code Name: ".$_POST['contact_appCodeName'];
$userInfo .= "\nJS App Name: ".$_POST['contact_appName'];
$userInfo .= "\nJS App Version: ".$_POST['contact_appVersion'];
$userInfo .= "\nJS Platform: ".$_POST['contact_platform'];
$userInfo .= "\nJS Language: ".$_POST['contact_language'];
$name_contact = $_POST["contact_name"];
$email_contact = $_POST["contact_email"];
$message_contact = "".$_POST["contact_message"]." \n\n(reply to ".$email_contact.")";
$message_contact .= "\n\n".$userInfo;
$topic_contact = "Contact (spam aware) - Message from ".$name_contact;
$header = "From: ".$_POST["contact_email"]."";
$redirect = "hello@thatswinnie.com";
/* Send subscription or contact mail */
if (isset($name_contact) && isset($email_contact) && isset($message_contact)) {
mail($redirect, $topic_contact, $message_contact, $header);
$emailSend = true;
header("Location: https://thatswinnie.com/#contact");
exit();
}
}
?>
thatswinnie - Winnie Teichmann
-
Hi, I am Winnie!
I am a Human Design enthusiast, a guide and health advocate. I also work as an iOS developer that loves to build beautiful and user friendly apps.
Interested in working with me? Contact me!
-
Contact
To contact me you can hit me up on the various social networks or use the form below.
if ($emailSend == true) { ?>
Thanks! - I will reply as soon as possible! No spam for sure!
} ?>