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

后端 未结 8 2528
刺人心
刺人心 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:36

    Remove the @gmail.com from username, already you mentioned smtp. So no need @gmail.com on your username. I'm 100% sure it is your problem, because I had that problem.

    0 讨论(0)
  • 2020-12-02 15:38

    Did you activate 2-step google authentification? If so, you need to define a new "application-specific password" password: http://www.google.com/landing/2step/.

    0 讨论(0)
提交回复
热议问题