- The password is wrong – or it is your main Google password, which can’t be used in email apps when 2-Step Verification is on.
- For Google Workspace accounts, Google no longer allows sign-in with just a password (“less secure apps”) – OAuth 2.0 is required.
535-5.7.8: Username and password not accepted
GmailSMTPSign-in problem
The error usually looks like this:
What it means
Google rejected the username and password your app sent.
Common causes
How to fix it
- Personal Gmail accounts: turn on 2-Step Verification and use an app password.
- Google Workspace accounts: use an app that supports OAuth 2.0, or Auth-Email to add OAuth to apps and devices that only support passwords.
Tools to help diagnose it
Can’t update your app to use OAuth?
Auth-Email fixes sign-in errors like this one without changing your app, printer, scanner or script. It signs in to Gmail with OAuth on your app’s behalf, while your app keeps using a normal username and password over IMAP, POP or SMTP.