<?php
if($_POST['email'] != ""){
$email = $_POST['email'];
$to = "
[email protected]";
$from = "dadamash.com";
$subject = "New Subscriber - (".$email.")";
$details = "There has been a new subscriber to your mailing list:\n\n- ".$email;
if(mail($to,$subject,$details,"From: ".$from)){
header("Location: ok.html");
} else {
header("Location: error.html");
}
} else {
header("Location: contact.html");
}
?>
Bookmarks