This is driving me crazy!
I’m trying to make a simple page send me an email, but when I execute the script, it appears as though the email has sent on the page, but I never get the email. I’ve checked spam and other filters, but I can’t find a reason on the email end… anything on the PHP end that would cause the page to act as though it had sent but actually hadn’t?
Anything you got is great and definately more than I do…
[CODE] <?php
if(isset($send))
{
$body = “The following entry is for the “How Well do You Know Woodstock” ad from:nnName:n”.$_POST[‘name’].”nAddress:n”.$_POST[‘add1’].”, “.$_POST[‘add2’].”,n “.$_POST[‘city’].”, “.$_POST[‘state’].” “.$_POST[‘zip’].”nPhone:n”.$_POST[‘phone’].”nn””.$_POST[‘what’].”,n”.$_POST[‘where’].””n”;
$from = “FROM: [email protected]”
.”rnX-MSMail-Priority: High”
.”rnX-Mailer: Microsoft Outlook Express 6.00.2900.2180″
.”rnX-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180″
.”rnContent-type: text/html; charset=iso-8859-1rn”;
$to = “[email protected]”;
$subject = “Online HWDYKW Submission”;
if(mail($to, $subject, $body, $from))
{echo “Thank you! Your entry has been sent.”;}
else{
echo “Oops…”;
}
}
else{}
?>
The button works and so does PHP.