Sending Mail
Posted: Sat Jun 17, 2006 5:02 pm
im trying to get a confirmation and recap page to display sending an email to the user and then one to me the code completes and runs but i do not get the email.
can anyone help?
any help much appreciated.
can anyone help?
Code: Select all
<?php
$firstname = $_POST['firstname'];
$surname = $_POST['surname'];
$email = $_POST['email'];
$requirements = $_POST['requirements'];
$telephone = $_POST['telephone'];
$time = $_POST['time'];
echo "Thanks ". $firstname . " " . $surname . "<br />";
echo "<br />";
echo "Your order has been sent and will be processed we will try and call you <br />";
echo "at your requested time if we however miss your requested time we will keep trying <br />";
echo "<br />";
echo "To recap your requirements are: ". $requirements .".<br />";
echo "<br />";
echo "We will try calling you on " . $telephone . " at about " . $time . "<br />";
echo "<br />";
echo "<br />";
echo "Thank you for ordering from Dodpen Farm <br />";
echo "<br />";
echo "Dodpen Farm<br />";
echo "Fishpond <br />";
echo "Bridport <br />";
echo "DT6 6NW <br />";
echo "Tel:01297 678393<br />";
echo "<br />";
echo "www.dodpenfarm.co.uk <br />";
$sendTo = "kev@dodpenfarm.co.uk";
$subject = "Dodpen Farm";
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] ."\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-path: " . $_POST["email"];
$message = "requirements" . $_POST['requirements'];
$message = "Telephone" . $_POST['telephone']. " at ". $_POST['time'];
?>