I have a form that I have used before that is just a regular form. You fill out the form and hit submit and it returns a Thank You page. So it goes from form.html to mailPage.php and then Thankyou.html. I have used this same form twice now and it normally works fine but for some reason on this new site it is not sending the email. I know the mailPage is getting called because it sends you to the thankyou page, but no email gets send. Any ideas on what might be causing this. Here is my code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Untitled 1</title>
</head>
<body>
<?php
$email = $_REQUEST['eMail'] ;
$comments = $_REQUEST['comments'] ;
$year = $_REQUEST['year'] ;
$make = $_REQUEST['make'] ;
$model= $_REQUEST['model'] ;
$zip = $_REQUEST['zip'] ;
$state = $_REQUEST['State'] ;
$city = $_REQUEST['City'] ;
$address = $_REQUEST['Address'] ;
$callTime = $_REQUEST['callTime'] ;
$workNumber= $_REQUEST['workNumber'] ;
$foundby = $_REQUEST['foundby'] ;
$fullName = $_REQUEST['fullName'] ;
$homeNumber = $_REQUEST['homeNumber'] ;
mail( "XXXX@XXXXXXXXXXX", "Estimate Request",
"From:\t$fullName\nEmail:\t$email\nHome Phone:\t$homeNumber\nWork Phone:\t$workNumber\nBest time to call:\t$callTime\nAddress:\n\t$address\n\t$city, $state $zip\nMake: $make\tModel:$model\tYear:$year\nFound us by:\t$foundby\n\nComments:\n$comments");
header( "Location: thankyou.html" );
?>
</body>
</html>