title: Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port", XAMPP for WIndows XP
body: <p>I am running a XAMPP server on Windows XP. Allegedly XAMPP automatically prepares a mail server.</p>
  
  <p>This is the code I am using:</p>
  
  <pre><code>$cimzett = 'ledit4@gmail.com';
  ...
  mail($cimzett, $targy, $uzenet, 'From:'.$email);
  </code></pre>
  
  <p>(<code>$cimzett</code> means "to", <code>$targy</code> is subject, <code>$uzenet</code> is message in Hungarian)
  but in the browser appling PHP it sends me this message:</p>
  
  <p>I get this error message:</p>
  
  <pre><code>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:\xampp\htdocs\PHP\alien.php on line 50
  </code></pre>
  
  <p>I tried to use <code>set_ini()</code> function too, but I got the same message.</p>
  
  <p>Maybe the security properties of XAMPP does not allow  me send an email to gmail.com?</p>
  
  <p>I use PHP Version 5.3.5 and </p>
  
  <p>SMTP    localhost   localhost
  smtp_port   25  25</p>
  
  <p>are the settings reported by phpinfo();</p>
  
  <p>I suspect the mail server is not working properly. What do you think?</p>