title: Why website Contact form is not working?
body: <p>I have written the following contact form. But it is or working. Please help me ....</p>
  
  <pre><code>&lt;?php
      if (isset($_POST['submit'])) {
          $ToEmail = 'mymail@gmail.com';
          $EmailSubject = 'Site contact form ';
          $mailheader = "From: " . $_POST["email"] . "\r\n";
          $mailheader .= "Reply-To: " . $_POST["email"] . "\r\n";
          $mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n";
          $MESSAGE_BODY = "Name: " . $_POST["name"] . "&lt;br&gt;";
          $MESSAGE_BODY .= "Email: " . $_POST["email"] . "&lt;br&gt;";
          $MESSAGE_BODY .= "Comment: " . nl2br($_POST["comment"]) . "&lt;br&gt;";
          mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) 
          or die("Failure");
  
          echo "&lt;p&gt;Your message was sent.&lt;/p&gt;"; 
      }         
  ?&gt;
  
  &lt;form action="index.php?page=contacts" method="post"&gt;                
      &lt;p&gt;Your name:&lt;br/&gt;
          &lt;input name="name" type="text"  size="32"&gt;
      &lt;/p&gt;
      &lt;p&gt;Email address:&lt;br/&gt;
          &lt;input name="email" type="text"  size="32"&gt;
      &lt;/p&gt;
      &lt;p&gt;Message:&lt;br/&gt;
          &lt;textarea name="comment" cols="55" rows="8"&gt;&lt;/textarea&gt;
      &lt;/p&gt;
      &lt;p&gt;
          &lt;input type="submit" name="Submit" value="Send"&gt;
      &lt;/p&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>If you find any bug please let me know. Thanks in advance.</p>