title: cant send out any email
body: <p>I keep getting the error </p>
  
  <pre><code>warning: mail() [&lt;a href='function.mail'&gt;function.mail&lt;/a&gt;]: Failed to connect to mailserver at &amp;quot;localhost&amp;quot; port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() 
  </code></pre>
  
  <p>in my php code</p>
  
  <pre><code>&lt;?php
  // the message
  $msg = "Testing";
  
  // use wordwrap() if lines are longer than 70 characters
  $msg = wordwrap($msg,70);
  
  // send email
  mail("someone@example.com","My subject",$msg);
  ?&gt;
  </code></pre>
  
  <p>php.ini</p>
  
  <pre><code>[mail function]
  ; For Win32 only.
  ; http://php.net/smtp
  SMTP = localhost
  ; http://php.net/smtp-port
  smtp_port = 26
  ; For Win32 only.
  ; http://php.net/sendmail-from
  sendmail_from = you@yourdomain
  
  ; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
  ; http://php.net/sendmail-path
  ;sendmail_path = ""
  </code></pre>