I have problem to send email using gmail. When I tested form on my server mailer works ok but after moved website to another provider error ocured
INFO - Matched route "my_frontend_default_index" (parameters: "_controller": "My\FrontendBundle\Controller\DefaultController::indexAction", "_route": "my_frontend_default_index")
ERROR - Exception occurred while flushing email queue: Failed to authenticate on SMTP server with username "tomasz.zalewski01@gmail.com" using 1 possible authenticators
my parameters.yml
parameters:
mailer_transport: gmail
mailer_encryption: ssl
mailer_auth_mode: login
mailer_host: smtp.gmail.com
mailer_user: 'tomasz.zalewski01@gmail.com'
my config.yml
swiftmailer:
transport: gmail
host: smtp.gmail.com
username: 'tomasz.zalewski01@gmail.com'
password: 'password'
Someone have idea where is the problem ?