title: Send Mail using PHP failing
body: <p>I am using the same php code I have always used to try and send a form via email and I am getting this message:</p>
  
  <blockquote>
    <p>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
    sendMailSuscribete.php on line 44</p>
  </blockquote>
  
  <p>this are lines 40 - 54:</p>
  
  <pre><code>$header .= "From: $email" . "\r\n";
  $header .= "Reply-To: $email" . "\r\n";
  $header .= "Return-Path: $email" . "\r\n";
  
  if(mail($to, $subject, $msg, $header)){
      //Message sent!
      redirect("http://www.domain.com/suscribete.html");
  }else{
      // Display error message if the message failed to send
      echo "
      &lt;div class=\"MsgError\"&gt;
          &lt;h1&gt;Error&amp;hellip;&lt;/h1&gt;
          &lt;p&gt;Disculpa &lt;b&gt;&lt;?=$name;?&gt;&lt;/b&gt;, tu mensaje fall&amp;oacute; en ser enviado. Por favor vuelve a intentar.&lt;/p&gt;
  &lt;/div&gt;";
  }
  </code></pre>
  
  <p>I already checked using <code>phpinfo()</code> and I know that the smtp is set to localhost and the port it uses is 25 so I really have no idea what the error may be.</p>
  
  <p><strong>Update</strong>
  I forgot to say it is running on a Windows server and this php file is the one I've always used for Unix servers, should it contain something different?</p>