Laravel Gmail Configuration Error

情到浓时终转凉″ 提交于 2019-12-02 10:00:01

As well as the configuration on the Laravel side, you need to enable "Less secure apps" in your Gmail account.

On the Laravel side, this guide shows the settings you need. Use smtp.gmail.com for host, and either 465/ssl or 587/tls.

Hey here is the solution

MAIL_DRIVER='smtp

MAIL_HOST='smtp.gmail.com'

MAIL_PORT=587

MAIL_USERNAME='sample@gmail.com'

MAIL_FROM_ADDRESS='sample@gmail.com'

MAIL_FROM_NAME='Some Name'

MAIL_PASSWORD='XXXXX'

MAIL_ENCRYPTION='tls'

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!