【发布时间】:2015-05-07 07:03:42
【问题描述】:
我无法使用 gmail 发送电子邮件。当我在我的服务器邮件程序上测试表单时工作正常,但在将网站移动到另一个提供商后出现错误
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
我的参数.yml
parameters:
mailer_transport: gmail
mailer_encryption: ssl
mailer_auth_mode: login
mailer_host: smtp.gmail.com
mailer_user: 'tomasz.zalewski01@gmail.com'
我的 config.yml
swiftmailer:
transport: gmail
host: smtp.gmail.com
username: 'tomasz.zalewski01@gmail.com'
password: 'password'
有人知道问题出在哪里吗?
【问题讨论】: