title: Sending email from localhost in php in windows
body: <p>I am using this very tiny piece code to test whether an email reaches the email destination:</p>
  
  <pre><code>&lt;?php
    mail('woodsy013@hotmail.com','Test mail','The mail function is working!');
    echo 'Mail sent!';
  ?&gt;
  </code></pre>
  
  <p>But it doesnt seem to be working. I am using WAMP. I have installed a free SMTP server. And my php.ini file is configured to the following:</p>
  
  <pre><code>[mail function]
  ; For Win32 only.
  ; http://php.net/smtp
  SMTP = smtp.tools.sky.com
  ; http://php.net/smtp-port
  smtp_port = 25
  
  ; For Win32 only.
  ; http://php.net/sendmail-from
  sendmail_from = you@yourdomain
  </code></pre>
  
  <p>I dont seem to be receiving an email to woodsy130@hotmail.com following the actions I have mentioned. </p>
  
  <p>I get this error:</p>
  
  <pre><code>Warning: mail() [function.mail]: SMTP server response: 530 5.7.0 
  Must issue a STARTTLS command first. ff2sm10904265wib.9 in 
  C:\wamp\www\Derrysgc2\pages\pages\mailtest.php on line 2
  </code></pre>
  
  <p>Any suggestions?</p>