Hi guys,

I've looked at a previous post about auto-confirmation, but it hasn't helped me.
Basically:
Code:
$tree = check_input($_POST['tree'], "Please go back and choose a tree.<br /><form><input type='button' value='Go back' onclick='history.go(-1)' /></form>");
	$pot = check_input($_POST['pot'], "Please go back and choose a pot.<br /><form><input type='button' value='Go back' onclick='history.go(-1)' /></form>");
	$name = check_input($_POST['name'], "Please go back and enter your name.<form><input type='button' value='Go back' onclick='history.go(-1)' /></form>");
	$address1 = check_input($_POST['address1'], "Please go back and enter the first line of your address.<form><input type='button' value='Go back' onclick='history.go(-1)' /></form>");
	$address2 = check_input($_POST['address2']);
	$address3 = check_input($_POST['address3']);
	$postcode = check_input($_POST['postcode'], "Please go back and enter your post code.<form><input type='button' value='Go back' onclick='history.go(-1)' /></form>");
	$rec_email = check_input($_POST['email']);
		if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/",$rec_email)){
			die("E-mail address invalid.  Please go back and enter a vaild e-mail address.<form><input type='button' value='Go back' onclick='history.go(-1)' /></form>");
		}
	$phone = check_input($_POST['phone'], "Please please go back and enter your contact telephone number.<form><input type='button' value='Go back' onclick='history.go(-1)' /></form>");
	$date1 = check_input($_POST['date1'], "Please go back and choose a date from the date picker.<form><input type='button' value='Go back' onclick='history.go(-1)' /></form>");
	$date2 = check_input($_POST['date2']);
	$date3 = check_input($_POST['date3']);
	$date4 = check_input($_POST['date4'], "Please go back and choose a collection date from the date picker.<form><input type='button' value='Go back' onclick='history.go(-1)' /></form>");
	$date5 = check_input($_POST['date5']);
	$comments = check_input($_POST['comments']);
	$named_tree = tree_type($tree);
	$height_tree = tree_height($tree);
	$price_tree = tree_price($tree);
	$to = $_POST['email'];
	
	
	$subject = "Order from Forever Green Christmas Trees";
	$subject2 = "Auto-Confirmation: Your Order from Forever Green Trees";
	$message = "Name: ".$name."\nAddress: ".$address1.", ".$address2.", ".$address3.", ".$postcode."\nPhone Number: ".$phone."\nEmail: ".$rec_email."\nComments: ".$comments."\n\nTree: ".$tree."\nPot: ".$pot."\nDelivery date 1: ".$date1."\nDelivery date 2: ".$date2."\nDelivery date 3: ".$date3."\nCollection date 1: ".$date4."\nCollection date 2: ".$date5;
	$message2 = "Just to confirm we have received your Christmas tree rental order.\n  An invoice will follow within the next 24 hours.\n\n\n\n\nPlease do not reply to this email as it is automated." ;
	$message3 = "Dear ".$name."\nJust to confirm we have received your Christmas tree rental order.  It is as follows:\n\n\nName: ".$name."\nAddress Line 1: ".$address1."\nAddress Line 2: ".$address2."\nAddress Line 3: ".$address3."\nPostcode: ".$postcode."\nContact Number: ".$phone."\nTree: ".$named_tree." ".$height_tree."\nPot: ".$pot."\nPrice: ".$price_tree."\nDelivery Date 1: ".$date1."\nDelivery Date 2: ".$date2."\nDelivery Date 3: ".$date3."\nCollection Date 1: ".$date4."\nCollection Date 2: ".$date2."\n\n\n\n\nIf any of the above deatils are incorrect, please let us know as soon as possible";
	
	mail($to,$subject2,$message3,"From: orders@forever-green-christmas.co.uk");
	mail("orders@forever-green-christmas.co.uk",$subject,$message,"From: ".$rec_email);
isn't sending an email to the person who made an order, though it is sending an email to myself with their order. Any suggestions?

Thank you
(PS I've left out the functions coz I know they work)