I'm using magento 2.3.1, every time I edited or add users or roles I get this error.

5.7.8 Username and Password not accepted. Learn more at 5.7.8 https://support.google.com/mail/?p=BadCredentials l17sm2797996wrq.37 - gsmtp

Email is working fine, I configured it with Google SMTP. Not sure what is the cause of that error. The user is added or edited correctly, I just see the error but no real impact, everything works.


Your error pointed that bad credentials using gmail smtp. See this url : https://support.google.com/mail/thread/5621336?hl=en

Did you tried send test email ? First try to send test email from admin side. Check that any test email or transaction emails are working or not.

Also test your server log. You can find log at var/log folder of your magento directory.


Fix the SMTP Gmail error to allow access to Allow less secure apps in gmail.

Go to https://myaccount.google.com/lesssecureapps

Allow less secure apps: ON

Refer the attach screenshot.

enter image description here

Hope it help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.