I have been trying to send email using swiftmailer, however I am not able to do so, I am getting following exception
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 [] []
Can anybody tell what am I missing here? It looks like authentication is failing for some reason.
here is the snippet from my config file:
swiftmailer:
transport: gmail
encryption: ssl
auth_mode: login
host: smtp.gmail.com
username: myusername@gmail.com
password: password
My Dev server has ubuntu v13 OS