[thelist] More PHP Contact form trouble
Brian Cummiskey
brian at hondaswap.com
Mon Jun 4 10:09:51 CDT 2007
Tom, try adding in some simple error checking to see if it's actually
getting processed:
> <?php
> $name = $_POST["name"];
> $email = $_POST["email"];
>
> $to = 'myemail at gmail.com';
> $subject = 'OraTechNet Form Feedback';
> $message = $_POST['comments'];
> $headers = "From: $name" . "\r\n" .
> "Reply-To: $email" . "\r\n" .
> 'X-Mailer: PHP/' . phpversion();
>
> if(mail($to, $subject, $message, $headers)){
> Header("Location:http://www.oratechnet.com/thank-you.php");
> }
> else { echo "Error with mail";
> }
> ?>
>
If this still directs to the thank you page, then the mail function is
working, and then you need to look into where its getting lost/not
getting out of yahoo's mail servers (exim, etc)
More information about the thelist
mailing list