title: Can not send mail through PHPMailer
body: <p>This is my php code</p>
  
  <pre><code>require("class.phpmailer.php");
  
  $mail = new PHPMailer();
  
  $mail-&gt;IsSMTP();  // telling the class to use SMTP
  $mail-&gt;Host     = "smtp.gmail.com"; // SMTP server
  
  $mail-&gt;From     = "example@gmail.com";
  $mail-&gt;AddAddress("example@yahoo.com");
  
  $mail-&gt;Subject  = "First PHPMailer Message";
  $mail-&gt;Body     = "Hi! \n\n This is my first e-mail sent through PHPMailer.";
  $mail-&gt;WordWrap = 50;
  
  if(!$mail-&gt;Send()) {
  echo 'Message was not sent.';
  echo 'Mailer error: ' . $mail-&gt;ErrorInfo;
  } else {
  echo 'Message has been sent.';
  }
  </code></pre>
  
  <p>My php.ini has this mail configuration
      [mail function]</p>
  
  <pre><code>SMTP = smtp.gmail.com
  smtp_port = 465
  sendmail_from =example@gmail.com
  </code></pre>
  
  <p>My error is </p>
  
  <blockquote>
    <p>The following From address failed: example@gmail.com Message was not
    sent.Mailer
        error: The following From address failed: example@gmail.com
        SMTP server error: 5.7.0 Must issue a STARTTLS command first. i1sm13250552pbv.49</p>
  </blockquote>
  
  <p>please help me.thanks in advance......</p>