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...
The button works and so does PHP.Code:<?php if(isset($send)) { $body = "The following entry is for the \"How Well do You Know Woodstock\" ad from:\n\nName:\n".$_POST['name']."\nAddress:\n".$_POST['add1'].", ".$_POST['add2'].",\n ".$_POST['city'].", ".$_POST['state']." ".$_POST['zip']."\nPhone:\n".$_POST['phone']."\n\n\"".$_POST['what'].",\n".$_POST['where']."\"\n"; $from = "FROM: hwdykw@thewoodstockindependent.com" ."\r\nX-MSMail-Priority: High" ."\r\nX-Mailer: Microsoft Outlook Express 6.00.2900.2180" ."\r\nX-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180" ."\r\nContent-type: text/html; charset=iso-8859-1\r\n"; $to = "c.larson09@gmail.com"; $subject = "Online HWDYKW Submission"; if(mail($to, $subject, $body, $from)) {echo "Thank you! Your entry has been sent.";} else{ echo "Oops..."; } } else{} ?>


Reply With Quote
Bookmarks