Form will not send to email.
I have two files on my server at GoDaddy, the first is my form:
<style type="text/css">
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
#FormDiv {
Width: 400px;
height: auto;
margin-left: auto;
margin-right: auto;
margin-top: 60px;
background: #EAEAEA;
padding-top: 2px;
padding-right: 2px;
padding-bottom: 2px;
padding-left: 2px;
border: medium groove #E01D20;
}
</style>
</head>
<body>
<div id="FormDiv" >
<form action="mailscript.php" method="post" name="ContactForm" id="ContactForm">
<table align="center">
<tbody>
<tr>
<td><label for="Subject"></label>
<input type="text" name="Subject" id="Subject" form="ContactForm" /></td>
</tr>
<tr>
<td><label for="Message"></label>
<textarea name="Message" cols="45" rows="5" id="Message" form="ContactForm"></textarea></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
</td>
</tr>
<tr>
<td><input name="SubmitButton" type="submit" id="Submit Button" form="ContactForm" value="Send Message" /></td>
</tr>
</tbody>
</table>
</form>
</div>
Second file is the script:
<?php
$from="noreply@gmail.com";
$email="xxxxxxxxxxxxx.gmail.com";
$subject=$_POST['Subject'];
$message=$_POST['Message'];
mail ( $email, $subject, $message, "From:".$from );
Print "your message has been sent";
?>
When I submit the form the browser responds with "your message has been sent" but I have no email in my box. I am wondering if I typed something wrong (built following a tutorial) or if I am missing some kind of setting or application on my webserver, or a call in one of my files, etc. I am a newbie, however I do pretty much understand most of what I am doing with simple html and most of the information above save a bit of confusion on "id" vs "name" etc.
Thanks for any input you may have.
