Can't send mail over php
<p>I have a form where an user enters into a message, and the message gets sent to the recipient on the other end. I have tried this script multiple times, scoured tutorials, yet I can't seem to find what's wrong. Any ideas?</p>

<p>HTML Form: </p>

<pre><code> &lt;form method="post" action="&lt;?php echo $_SERVER['PHP_SELF']; ?&gt;" &gt;
       &lt;?php 
        if(isset($sent))
                 echo 'Your message has been sent. '; ?&gt;
      &lt;label for="Name"&gt;Name&lt;/label&gt;&lt;br /&gt;                  
      &lt;input type="text" class="textbox" size="35" id="Name" name="Name" &lt;?php if(isset($name)) echo "value=\"$name\"";?&gt; /&gt;&lt;br /&gt;
      &lt;label for="Service"&gt;Service&lt;/label&gt;&lt;br /&gt;
      &lt;input type="text" size="35" class="textbox" id="Service" name="Service" &lt;?php  if(isset($subject)) echo"value=\"$subject\"";?&gt; /&gt;&lt;br /&gt;
      &lt;label for="Email"&gt;Email&lt;/label&gt;&lt;br /&gt;
      &lt;input type="text" size="35" class="textbox" id="Email" name="Email" &lt;?php if(isset($from)) echo"value=\"$from\""; ?&gt; /&gt;&lt;br /&gt;     
      &lt;label for="message"&gt;Message&lt;/label&gt;&lt;br /&gt;
      &lt;textarea rows="95" cols="100" id="message" name="message"&gt;&lt;?php if(isset($message)) echo"$message"; ?&gt;&lt;/textarea&gt;&lt;br /&gt;
      &lt;button type="submit"&gt;Send Message&lt;/button&gt;               
&lt;/form&gt;
</code></pre>

<p>PHP:</p>

<pre><code>if(isset($_POST['Name']) &amp;&amp; isset($_POST['Email']) &amp;&amp; isset($_POST['Service']) &amp;&amp; isset($_POST['message'])) {
    $name = $_POST['Name'];
    $from = $_POST['Email'];
    $subject = $_POST['Service'];
    $to = "emailtestertora@gmail.com";
    $message = $_POST['message'];
    mysql_query("INSERT INTO `Contact`(`Name`, `Email`, `Message`, `Service`) VALUES('$name', '$from', '$message', '$subject')");
    $headers = "From:".$from;
    if(mail($to,$subject,$message,$headers)) 
        $msgsent = true;
}
</code></pre>

<p>Thanks!</p>
