534 5.7.9: Application-specific password required
Gmail’s 534 5.7.9 error, “Application-specific password required,” means the app signed in with your normal Google password on an account that has 2-Step Verification turned on. Google refused that password from the app and wants an app password instead: a 16-character code made for that one app. It isn’t saying your Google password is wrong, and nothing was sent.
Gmail
534-5.7.9 Application-specific password required. For more information, go to 534 5.7.9 https://support.google.com/mail/?p=InvalidSecondFactor
- Invalid login: 534-5.7.9 Application-specific password required.
- Server returned error 534-5.7.9 Application-specific password required
- [ALERT] Application-specific password required: https://support.google.com/accounts/answer/185833 (Failure)
Why it happens in a mail merge
With 2-Step Verification on, Google may block apps that sign in with the account’s own password, and an app password is how it lets them in. A mail merge from Gmail meets this at the first step, when the app signs in to send, so not one email has gone out yet.
Here, Google asks for one thing: the app password. When the password itself is refused, Gmail answers 535 5.7.8, “Username and Password not accepted,” instead. Google’s steps are in making a Gmail app password.
How to fix it
- Open App passwords
Signed in to the Gmail account the app sends from, open App passwords in your Google Account (myaccount.google.com/apppasswords).
- Create one for the app
Give it the app’s name, so you know later what it’s for, and create it. Google shows the 16-character code once.
- Use it in place of your Google password
Paste it into the app’s password box and sign in again. Google says you usually enter an app password once per app or device.
What DearByDear does
When you add Gmail with an app password, the password window asks for the app password by name, not your Google one. If you paste the Google password anyway and Gmail answers 534 5.7.9 “Application-specific password required,” DearByDear says so in plain words, with the steps to make one above it: “Google refused your normal password: Gmail needs an app password. Create one on Google’s App passwords page (steps above) and paste that instead.”
A sign-in refused later, while a merge is sending, pauses the merge rather than failing anyone on the list: it carries on when you resume it with the app password in place. To catch it sooner, test a mail merge before sending: the test to yourself goes through Gmail for real.
Questions about 534 5.7.9
What does “Application-specific password required” mean in Gmail?
That Gmail wants a password made for this app, not your Google password. Google’s help calls it an app password; the error’s “application-specific password” is the same thing.
Gmail says 534 5.7.9 “Please log in with your web browser and then try again.” Is that the same error?
Not quite. Google’s list of errors puts it under the same code, but it asks for something else: sign in to Gmail in your web browser, then try the app again. DearByDear tells the two apart when you add or test the account, and for this one says to sign in to Gmail once in your web browser.
Does Outlook need an app password for Gmail?
Only when it can’t use “Sign in with Google.” Google’s advice for Outlook is to sign in with your Google Account in an up-to-date Outlook, and to use an app password when 2-Step Verification is on and that isn’t possible.
How do I fix “Server returned error 534-5.7.9”?
The same way in any app: create an app password for it and use it instead of your Google password. The words before the code, “Server returned error” or “Invalid login,” come from the app showing Gmail’s reply.
Sources
Each provider’s own pages, read on November 5, 2026. The error texts and the fixes are the providers’ own: if they change their wording, theirs is right.