今天git sendmail(gmail)出现如下错误:

Send this email? ([y]es|[n]o|[q]uit|[a]ll): y
5.7.8 Username and Password not accepted. Learn more at
5.7.8 https://support.google.com/mail/?p=BadCredentials z14sm5898723pgj.43 - gsmtp

打开Win下一个客户端看了下也有错误:

[11:09:18] IMAP< Invalid credentials (Failure)
** IMAP error on imap.gmail.com: LOGIN error
[11:09:18] IMAP< Error logging in to imap.gmail.com

以前都是ok的,估计server端问题,可以修改Google账户配置:

step1: 登录Google账户点击导航栏中Security,如下图:

ga-s1.png

step2: 页面下方Less secure app access面板打开即可如下图:

gc-s2.png

ps: 图上是已经打开的。

wait a min then try again, git sendmail and client are all ok now in my side:)