Gmail · Google Workspace · Major errors
Gmail 534 5.7.90: “Application-specific password required” — Google is telling you the fix
“534-5.7.90 Application-specific password required.” Google is refusing your normal password and naming the replacement in the same breath — unlike its sibling error 535, which rejects you without saying why. Google’s published error list prints the code as 534 5.7.90 (older logs and guides write 5.7.9) — same message, same fix. The page address keeps the shorter 5.7.9 form.
If your error says only “Username and Password not accepted” (535 5.7.80), you need the triage in our companion guide instead — the two errors look alike and take different first steps.
The fast answer
Do not turn off 2-Step Verification. (One third-party help page offers disabling it as an equal option. It is a security downgrade, and it is not the fix.) The fix is three steps:
- Turn on 2-Step Verification for the Google Account (Security > How you sign in to Google).
- Generate an app password (Security > App passwords), named for the device or app.
- Paste that 16-digit code as the SMTP password, with your full Gmail address as the username.
Google shows the code once. Copy it before you close the window, or generate a fresh one.
What you are looking at, in plain words
When 2-Step Verification is on, Google will not accept your normal account password from an app or device that cannot complete the second step — a scanner, a printer, an old mail plugin, a script. Instead, Google issues app passwords: 16-digit codes that give one less-secure app or device permission to access your account. Google’s help page is explicit that app passwords can only be used with accounts that have 2-Step Verification turned on, and that they are the route when the app does not offer “Sign in with Google”.
That is exactly what 534 means: “you have 2-Step Verification on, you gave me your normal password, and for this kind of connection I need the app password instead.” The error text itself usually links to Google’s help on the subject. The fix is therefore not a diagnosis puzzle — it is a generation procedure, plus three silent failure modes (wrong account, missing option, spent code) that this guide covers so the procedure works first time.
| Field | Value |
|---|---|
| SMTP server | smtp.gmail.com |
| Port / encryption | 587 with STARTTLS, or 465 with SSL/TLS |
| Username | Your full Gmail address |
| Password | The 16-digit app password (not your normal password) |
Step 0 — Prove which part is failing
Do not change anything yet. Every fix below depends on what these checks show.
- Read the error code, not just the words. Confirm it is 534 5.7.90 (“Application-specific password required”). If it is 535 5.7.80 (“Username and Password not accepted”), switch to our Gmail 535 guide — the triage there is different. If your 534 5.7.90 instead reads “Please log in with your web browser and then try again”, that is a different fault — sign in through the browser first; this guide’s app-password steps do not apply to it.
- Confirm the account. Open Gmail on the web and confirm you are looking at the same account the device or app is configured with. App passwords belong to one account; a code generated for a personal account will not authenticate a Workspace account, or vice versa.
- Confirm 2-Step Verification is on. Open your Google Account > Security > How you sign in to Google. If 2-Step Verification is off, that is why no app password exists yet — and step 1 below is your starting point.
- Identify the device or app. Name it now (“Office scanner”, “Website contact form”) — you will use that name for the app password, so you can recognise and revoke it later.
The fixes, in order
- Turn on 2-Step Verification if it is off. In your Google Account, go to Security > How you sign in to Google > 2-Step Verification and follow the prompts to turn it on. You cannot create an app password without it — Google’s help page states this as a requirement, not a recommendation.
- Generate the app password. Go to Security > App passwords (you may need to sign in again). Give it the name from Step 0, generate it, and copy the 16-digit code immediately — Google shows it once. Paste it into the device or app’s SMTP password field, with your full Gmail address as the username, and the server values from the table above. Do not type your normal password into that field again.
- If App passwords is not shown, check Google’s three reasons. Google’s help page lists them: your account has 2-Step Verification set up only for security keys; you are signed in to a work, school or other organisation account; or Advanced Protection is on. For security-keys-only, allow another 2-Step method. For a work, school or organisation account, ask the Workspace admin whether app passwords are allowed. If Advanced Protection is on, app passwords are not offered while it is on — use “Sign in with Google” instead, rather than disabling security features.
- If a previously working app password stops working, generate a fresh one. Google revokes app passwords when you change your Google Account password, so a recent password change is the usual cause. Replace the stored code with the new one and test again. Keep the naming discipline from Step 0: revoke the old, unused entry from the App passwords page so stale codes do not accumulate.
- Revoke what you no longer use. From the same App passwords page, remove entries for devices or apps you have retired. Each app password is a live credential for that device; a retired device should not keep one.
Prove it worked
- Send a test message from the device or app and confirm it arrives at an outside address.
- Check the device or app’s next real send (a scan, a form submission, a notification) goes through without a 534 entry in its log.
- Confirm the normal password still signs you in on the web — the app password is an addition for the device, not a replacement for your account password.
Still not working? Work this ladder in order
- Still 534 with a fresh code? Re-check the three fields together: full address as username,
smtp.gmail.comas server, and the port/encryption pair (587 + STARTTLS, or 465 + SSL/TLS). A wrong pair fails before the code is even judged. - Code rejected immediately? Confirm you pasted the code for the right account, and that no character was dropped in copying. Generate a fresh code and paste it directly rather than retyping it.
- Workspace account, admin-restricted? Ask the admin whether app passwords are allowed for your account, or whether the device should move to OAuth or the Workspace SMTP relay. That is a policy answer, not something a new code will override.
- Error changed from 534 to 535? That is progress, of a kind: Google is no longer asking for an app password specifically. Switch to the Gmail 535 guide and work its triage — the remaining fault is the sign-in method or the account, not the app-password step.
Mistakes that make it worse
- Turning off 2-Step Verification to “fix” the error. It removes a security layer and does not make the normal password acceptable to the device connection.
- Typing the normal password into the SMTP field again, harder, after Google has explicitly asked for an app password.
- Generating the app password for the wrong Google Account, then troubleshooting the right account’s settings.
- Leaving retired app passwords in place for devices you no longer own or use.
FAQ — the issues behind this error, answered
What is an app password, exactly?
A 16-digit code that gives one less-secure app or device permission to access your Google Account. Google’s help page defines it that way, and states it can only be used with accounts that have 2-Step Verification turned on. It is not a second account password — it is a per-device credential you can revoke individually.
Why does Google want an app password instead of my normal password?
Because the device or app cannot complete 2-Step Verification itself. Your normal password plus the second step is the sign-in for a human; an app password is the stand-in for a device that cannot do the second step.
What is the difference between Gmail 534 and Gmail 535?
534 5.7.90 names the fix: an application-specific password is required. 535 5.7.80 rejects the credential without saying why, so you must triage the sign-in method yourself. See our companion Gmail 535 guide for that error.
The code was shown once and I closed the window. What now?
Generate a fresh app password. Google shows each code once; closing the window does not break anything, it just means you need a new code. Revoke the unseen one if it appears in your list, so it does not linger.
Sources
Google Account Help — Sign in with app passwords (16-digit code, 2-Step Verification requirement, the three missing-option reasons, “Sign in with Google” preferred) · Google Account Help — Turn off 2-Step Verification (revoking app passwords) · Google Developers — IMAP, POP, and SMTP (smtp.gmail.com: 465 for SSL, 587 for TLS) · Gmail Help — Gmail SMTP errors and codes (534 5.7.90 “Application-specific password required”; 535 5.7.80 “Username and password not accepted”).
Did this fix work for you?
Your reaction is stored only in your own browser — it is not sent to us.