title: Testing Contact Form with local WAMP server
body: <p>I'm making a contact form so that someone can send a message to a specified email. However, I get an error message which is very persistent and won't go away:</p>
  
  <pre><code>Warning: mail(): Failed to connect to mailserver at &amp;quot;localhost&amp;quot; port 25, verify your &amp;quot;SMTP&amp;quot; and &amp;quot;smtp_port&amp;quot; setting in php.ini or use ini_set() in C:\wamp\www\mail.php on line 10
  </code></pre>
  
  <p>I tried putting in ini_set() on line 10 as specified, however it doesn't change anything. I tried researching what might be the case, but so far haven't come across anything. I was thinking maybe WAMP doesn't support mail.</p>
  
  <hr>
  
  <p>HTML Code</p>
  
  <pre><code>&lt;form action = "mail.php" method=  "POST"&gt;
      &lt;p&gt;Name&lt;/p&gt; &lt;input name = "name" type = "text"&gt;
      &lt;p&gt;Email&lt;/p&gt; &lt;input name = "email" type = "text"&gt;
  
      &lt;p&gt;Message&lt;/p&gt;&lt;textarea name = "message" rows = "6" cols = "25"&gt;&lt;/textarea&gt;&lt;br /&gt;
      &lt;input value = "Send" type = "submit" &gt;
      &lt;input value = "Reset Form" type = "reset"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Where a form is successfully made which sends data to mail.php through the submit button.</p>
  
  <hr>
  
  <p>PHP code</p>
  
  <pre><code>&lt;?php
  $name = $_POST['name'];
  $email = $_POST['email'];
  $message = $_POST['message'];
  
  $recipient = "To: myawesome.email@gmail.com";
  $mailheader = "From: $name \r\n";
  $formcontent= "From: $email \r\n Message: $message";
  
  mail($recipient, $mailheader, $formcontent) or die("Error!");
  echo "Your message has been delivered." . " -" . "&lt;a href='form.html' style='text-decoration: none; color: #ff0099;'&gt; Return Home &lt;/a&gt;";
  ?&gt;
  </code></pre>
  
  <p>Where mail.php is supposed to take $recipient, $mailheader, and $formcontent and email them to the specified address.</p>
  
  <p>Any help is much appreciated.</p>