title: symfony2 unable to send email via gmail
body: <p>I have been trying to send email using swiftmailer, however I am not able to do so, I am getting following exception</p>
  
  <pre><code>request.CRITICAL: Uncaught PHP Exception Swift_TransportException: "Failed to authenticate on SMTP server with username "myusername@gmail.com" using 1 possible authenticators" at /home/ubuntu/Symfony/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php line 184 [] []
  </code></pre>
  
  <p>Can anybody tell what am I missing here? It looks like authentication is failing for some reason.</p>
  
  <p>here is the snippet from my config file:</p>
  
  <pre><code>swiftmailer:    
  
    transport:  gmail
    encryption: ssl
    auth_mode:  login
    host:       smtp.gmail.com
    username:   myusername@gmail.com
    password:   password
  </code></pre>
  
  <p>My Dev server has ubuntu v13 OS</p>