title: Warning: mail(): SMTP server response: 530 5.7.0 Must issue a STARTTLS command first
body: <h2>Details</h2>
  
  <ul>
  <li>I am running a PHP script on my local Windows 7 machine using <strong>php.exe</strong></li>
  <li>I want to trigger an email at the end of my script, but I couldn't get it to send an email.</li>
  </ul>
  
  <p>Mail</p>
  
  <p><code>mail('email@gmail.com', '$title' , '$data' );</code></p>
  
  <p>This is what I've in my <strong>php.ini</strong></p>
  
  <pre><code>[mail function]
  
  SMTP = smtp.gmail.com
  smtp_port = 25
  username = email@gmail.com
  password = *****
  sendmail_from = email@gmail.com
  </code></pre>
  
  <p>I still can't send out any mail. I keep getting : </p>
  
  <blockquote>
    <p>Warning: mail(): SMTP server response: 530 5.7.0 Must issue a STARTTLS command first. l49sm2288391qgd.21 - gsmtp</p>
  </blockquote>
  
  <p>Please kindly advise - if I did anything wrong.</p>
  
  <p>Feel free to give me any suggestions.</p>
  
  <p>Thank-you for your time ! </p>