title: Why mail() PHP function does not work with WAMP default installation?
body: <p>I have a default installation of WAMP Server 2.0.</p>
  
  <p>I'm trying to send email using this simple script:</p>
  
  <pre><code>&lt;?php
  
  if (mail('my_email@gmail.com', 'My Title', 'Some Text')) {
      echo "OK";
  } else {
      echo "Why ??";
  }
  
  ?&gt;
  </code></pre>
  
  <p>Unfortunately, I get the following warning:</p>
  
  <p><strong>Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\My_Path\send_email.php on line 3
  Why ??</strong></p>
  
  <p>What could be the reason for that ?</p>
  
  <p>I expected sending email to be a very simple task ... :(</p>