i need help with a php contact form script.the problem is when i run it i don`t receive emails when i use contact form.i was in the hope someone can tell me where the problem is located find code below. i run it in test php and got this message. i appreciate if anyone can help
<php
/* Email Variables */
$emailSubject = 'indie music!';
$webMaster = 'myemail';
/* Data Variables */
$email = $_POST['email'];
$name = $_POST['name'];
$comments = $_POST['comments'];
$body = <<<EOD
<br><hr><br>
Name: $name <br>
Email: $email <br>
Comments: $comments <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body,
$headers);
$theResults = <<<EOD
<html>
<head>
<title>sent message</title>
<meta http-equiv="refresh" content="3;URL=mydomain">
<style type="text/css">
<!--
body {
background-color: #444;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 20px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #fec001;
text-decoration: none;
padding-top: 200px;
margin-left: 150px;
width: 800px;
}
-->
</style>
</head>
<div align="center"> message has been successfully sent you will be contacted shortly</div>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>