I have been experimenting with a simple form mailer.
<?PHP
$to = "##########@vmobl.com"; #set address to send form to
$subject = "Results from your test PHP script "; #email subject line
$headers = "From: Your Web Site"; #set the from address, or any other headers
$forward = 1; # redirect once email is sent? 1 : yes || 0 : no
$location = "thanks.html"; #set page to redirect to, if 1 is above
Adds time and date to the email
$date = date ("l, F jS, Y");
$time = date ("h:i A");
the message part of the email
$msg = "Below is the result of your feedback form. It was submitted on $date at $time.\n\n";
if ($SERVER['REQUEST_METHOD'] == "POST") {
foreach ($POST as $key => $value) {
$msg .= ucfirst ($key) ." : ". $value . "\n";
}
}
else {
foreach ($_GET as $key => $value) {
$msg .= ucfirst ($key) ." : ". $value . "\n";
}
}
mail($to, $subject, $msg, $headers);
if ($forward == 1) {
header ("Location:$location?Name=$name&Email=$email&Message=$message");
}
else {
echo "Thank you for submitting our form. We will get back to you as soon as possible.";
}
?>
Is there some simple reason why this script will mail to every address I have tested, Except a cell phone's email address?
Any suggestions appreciated.
Thanks