title: Unable to send mail through Google SMTP with PHPMailer
body: <p>I'm trying to send out mail using Google's SMTP in combination with PHPMailer, but I can't get it to work. This is my code:</p>
  
  <pre><code>$mail-&gt;IsSMTP();
  $mail-&gt;Host = "smtp.gmail.com";
  $mail-&gt;SMTPAuth = true;
  $mail-&gt;SMTPSecure = "ssl";
  $mail-&gt;Username = "myemail@gmail.com";
  $mail-&gt;Password = "**********";
  $mail-&gt;Port = "465";
  </code></pre>
  
  <p>First I do not fully understand what should be filled in as 'SMTPSecure', some say '<code>ssl</code>', other say '<code>tls</code>'. Next for 'Port' I could enter '465' or '587'. But none of the combinations work... Note that I'm using a regular Gmail account and not Google Apps. In my Gmail account I've enabled 'POP access'.</p>
  
  <p>The error I get is: "<code>Must issue a STARTTLS command first</code>". Which means SSL failed, but don't know why...</p>