title: Why I cant send a Gmail email with SwiftMailer?
body: <p>When I try to send an email using <code>swiftmailer</code> in my Symfony project I get this exception:</p>
  <blockquote>
  <p>Exception occurred while flushing email queue: Connection could not be
  established with host smtp.gmail.com [ #0]</p>
  </blockquote>
  <p>Here's my config.yml:</p>
  <pre><code>swiftmailer:
      transport: '%mailer_transport%'
      encryption: '%mailer_encryption%'
      port: '%mailer_port%'
      auth_mode:  '%mailer_auth_mode%'
      host: '%mailer_host%'
      username: '%mailer_user%'
      password: '%mailer_password%'
      spool: { type: memory }
  </code></pre>
  <p>and my parameters.yml:</p>
  <pre><code>parameters:
      database_host: 127.0.0.1
      database_port: null
      database_name: pidev
      database_user: root
      database_password: null
      mailer_transport: smtp
      mailer_encryption: ssl
      mailer_auth_mode: login
      mailer_port: 465
      mailer_host: smtp.gmail.com
      mailer_user: 'myGmailAddress'
      mailer_password: 'mypassword'
      secret: ThisTokenIsNotSoSecretChangeIt
  </code></pre>
  <p>I've allowed less secure apps on my Gmail account and disabled my antivirus and my firewall.
  Also, I've already tried to ping smtp.gmail.com, it works fine but I got the same problem.</p>