Public feed
#600640
<?php
$name=$_POST['name'];
$customer_mail=$_POST['customer_mail'];
$headers="From: $name, <$customer_mail>" . "\r\n";
$mail_from="$customer_mail";
$to ='admin@bnutts.com';
$subject ='NewsLetter Signup';
if(mail($to,"$subject",$headers,"From: $mail_from\n")){
echo "Thank you for joining our mailing list.";
$fp = fopen("email.txt", "a+");
fwrite($fp, $customer_mail);
fclose($fp);
}
else {
echo "ERROR";
}
?>