doing a basic test can help see where it is dying, like at each stage, write something out to the page:
e.g. if your php filled the body of the mail, echo it out, perform something for each stage to see when it dies…
echo = "body populated";
It doesnt send any mail out and it keep redirecting to the error page not matter what.
are you on a windows server?
if so you need to set your ini in php
plus enquiry & message are not the same!!! you might want to change one.
mind you it looks like the script I use, but I $_REQUEST my HTML elements
$tel = $_REQUEST[‘tel’];
$email = $_REQUEST[’email’];
also this is my success:
$success = mail($EmailTo, $Subject, $Body, "From: <$email>", "[email protected]");
hopefully these small hints may help get it working