提问人:pape 提问时间:2/22/2016 更新时间:2/22/2016 访问量:743
通过 Laravel 5.1 发送电子邮件时出错
Error when sending email via Laravel 5.1
问:
当我尝试通过运行 Laravel 5 的网站发送电子邮件时,我收到以下异常:
Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8 https://support.google.com/mail/answer/14257 l140sm14142372oig.11 - gsmtp
这是我的环境配置
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERN[email protected]
MAIL_PASSWORD=example
MAIL_ENCRYPTION=tls
代码适用于本地和其他网站,但不适用于新主机上的新网站。我允许从安全性较低的应用程序进行访问。可能有什么问题?
答:
评论