I am trying to get an email form up and running. It is not working, and I've searched the forum for some answers before posting this. I read in another post to take it down to the most basic thing possible to see if the email is sending...and it is not. Here is what I have, can anyone see something that's not right? I think I might be seeing what should be there and skipping over the problem.
<form method="post" action="contact.php">
<input type="text" name="Name" />
<input type="text" name="Email" />
<textarea name="Comments" cols="35" rows="5"></textarea>
<input type="submit" value="Submit"/>
</form>
File saved as contact.php
<?php
$to = "email@mysite.com";
$subject = "Requesting Information";
$name = $REQUEST['Name'];
$email = $POST['Email'];
$comments = $_POST['Comments'];
if (mail($to, $subject, $name \n$email \n$comments))
{
echo "Thank you for contacting us.<br />";
echo "Someone will get back to you within 48 hours.";
} else {
echo "There was a problem sending the mail. Please check that you filled in the form correctly.";
}
?>