title: SwiftMailer + Gmail - Cannot send email
body: <p>I can't connect with Gmail SMTP server.</p>
  
  <p>Look:</p>
  
  <pre><code>$transport = Swift_SmtpTransport::newInstance()
              -&gt;setHost('smtp.gmail.com')
              -&gt;setPort(465)
              -&gt;setEncryption('ssl')
              -&gt;setUsername('email@gmail.com')
              -&gt;setPassword('mypasss');
  
      $mailer = Swift_Mailer::newInstance($transport);
  
      $message = Swift_Message::newInstance('Contato via Site')
              -&gt;setFrom(array($email =&gt; $de))
              -&gt;setTo(array($destinatario =&gt; 'Agência Linka'))
              -&gt;setBody($corpo_mensagem, 'text/html')
              -&gt;setCharset('UTF-8');
  
      $mailer-&gt;send($message);
  </code></pre>
  
  <p>And then I get this:</p>
  
  <pre><code>Fatal error: Uncaught exception 'Swift_TransportException' with message 'Connection could not be established with host smtp.gmail.com [ #0]' in ...
  </code></pre>
  
  <p>Anyone has experienced this?</p>