Laravel Gmail not working, “Username and Password not accepted. Learn more…”

后端 未结 8 2536
刺人心
刺人心 2020-12-02 14:49

When I try to send an e-mail through my website running Laravel 4, I get this exception:

{\"error\":{\"type\":\"Swift_TransportException\",\"message\":\"Expe         


        
8条回答
  •  既然无缘
    2020-12-02 15:23

    I tried the same thing and got the same error. So i personally checked my gmail account and i had a message from Gmail itself letting me know that they'd blocked an access attempt to my email account.

    They showed an option to disable this security setting by visiting https://www.google.com/settings/security/lesssecureapps.

    Things will actually be more straight forward if you visit that link already logged in into your Gmail account.

提交回复
热议问题