New guide: how to warm up a dedicated IP without hurting your reputation. Read now →
Log in
MigoSMTP
SecurityUpdated 4 Nov 2026

App passwords explained: when you need one in Gmail, Outlook and Yahoo

What an app password is, when Gmail, Outlook and Yahoo require one, how to create and revoke it safely, why it may be unavailable on your account, and what to use instead for business email sending.

KM
Written by Kwame Mensah
Billing and Account Specialist
Reviewed by Sana Qureshi
  • Published16 Jul 2023
  • Read time6 min
  • Length1,244 words
Share this guide

An app password is a separate, randomly generated password that lets one application or device sign in to your email account when that application cannot complete modern sign-in steps such as a two-factor prompt. You need one when an older mail program, a printer, a script or a plugin asks for your email password over SMTP, IMAP or POP and your account has two-step verification turned on. Your normal password will be rejected in that situation, and the app password takes its place for that single app.

This guide explains how app passwords work, when each of the big providers asks for one, how to create and revoke them safely, and why the option sometimes does not appear. Menu names and rules change often, so use the steps as orientation and confirm them in the provider's current help pages.

What it isA generated password for one app, used instead of your normal password
NeedsUsually two-step verification enabled first
RiskBypasses the second factor, so treat it like a full password
Better optionOAuth sign-in where the app supports it, or a dedicated sending service for business mail

Why app passwords exist

Two-factor sign-in works by asking for something extra after the password: a code, a prompt or a security key. Older protocols and many small programs cannot show that prompt. They simply send a username and password to the mail server. Providers solved this gap by letting you generate a long random password that works only for mail protocol access, can be named after the app and can be revoked individually without changing your main password. The mail server accepts it in place of the account password, and it does not ask for the second factor.

When you need one

  • A desktop mail client, scanner, printer or older device that only offers a plain password field.
  • A website plugin or script that sends mail through your personal mailbox over SMTP.
  • A mail migration or backup tool using IMAP with a basic login.
  • Any app that fails with an authentication error although the password is correct, while two-step verification is on.

You do not need one for signing in on the provider's own website or official apps, and you often do not need one if the app supports OAuth sign-in with a browser window; see OAuth 2.0 for SMTP and IMAP.

Provider overview

ProviderWhen an app password is typicalNotes (confirm in current help pages)
Gmail and Google accountsThird-party app using SMTP or IMAP with a password while 2-Step Verification is onCreation is under the account security settings. It may be unavailable if only security keys are used for 2-Step Verification, if Advanced Protection is on, or if a Workspace administrator disabled it
Outlook.com and Microsoft accountsOlder client that cannot do modern sign-in, with two-step verification onAvailability varies by account type. Work and school accounts follow organisation policy, and Microsoft has been retiring basic authentication in Exchange Online
Yahoo MailThird-party client or script using a passwordGenerated from the account security area as an app password for a named app
AOL MailSame pattern as YahooSee AOL SMTP and IMAP settings
iCloud MailThird-party mail clientApple calls these app-specific passwords, created from the Apple Account management page
Business mail on shared hostingUsually not usedMailbox passwords or separate SMTP credentials apply

Provider details are in Gmail SMTP settings and app passwords, Yahoo SMTP settings, iCloud SMTP settings and Outlook and Microsoft 365 SMTP settings.

How to create one safely

  1. Turn on two-step verification for the account first if the provider requires it.
  2. Open the account's security settings and find the app passwords option. The label differs between providers and can move; use the help search of the provider if you cannot find it.
  3. Give the password a name that identifies the app and device, such as Office printer, so you can recognise it later.
  4. Copy the generated password immediately. Most providers show it once.
  5. Paste it into the app's password field. Remove spaces if the provider displayed it in groups and the app does not accept them.
  6. Store it in a password manager, not in a document or chat message.
  7. Test the connection. If it fails, see the troubleshooting section.

What the settings look like in an application

# Typical SMTP client settings with an app password
Host:       smtp.mailprovider.example   (use the provider's documented host)
Port:       587 with STARTTLS   (or 465 with SSL/TLS)
Username:   [email protected]     (the full address)
Password:   <the generated app password, not your normal password>
Encryption: required

The host and port come from the provider. Confirm them on their documentation page rather than copying from an article, since they can change. For how ports and encryption relate, see SMTP settings, ports, TLS and authentication.

Security considerations

  • An app password bypasses the second factor. Anyone who has it can read and send mail as you through those protocols, so guard it like your main password.
  • Use one per app. If a device is lost or an app is retired, revoke only that password.
  • Revoke what you no longer use. Review the list now and then and remove old entries.
  • Changing your main password may revoke them all. Some providers do this, and some do not. Check, and be ready to generate new ones.
  • Do not share them. A colleague who needs access should have their own account or delegated access.
  • Prefer stronger options. OAuth tokens are scoped and expire, security keys resist phishing. See two-factor authentication best practices.

App passwords are not for business sending

Using a personal Gmail or Outlook mailbox plus an app password to send customer mail from a website or application is fragile. Mailbox providers apply low daily sending caps, may block bulk activity, rewrite the sender, and cannot give you control over authentication for your own domain or visibility into bounces. Messages sent this way also tend to carry the provider's domain rather than yours, which weakens your brand and your reputation signals.

For application and marketing mail, use a dedicated sending service with its own credentials. MigoSMTP, for example, authenticates your application with SMTP credentials over port 587 or 465, or with an API key, so there is no personal mailbox or second factor involved. The same principle applies to any provider: separate credentials for sending, scoped to that purpose and revocable on their own.

Troubleshooting

ProblemLikely causeWhat to do
No app passwords optionTwo-step verification off, only security keys used, advanced protection on, or admin policyEnable 2SV; ask your administrator; use OAuth or another method
App still says wrong passwordNormal password pasted, a typo, or spaces includedPaste the generated value; remove spaces if required
It worked and then stoppedPassword revoked, main password changed, or provider changed policyCreate a new app password; check provider notices
535 authentication failedWrong credentials or basic auth disabled for the accountRecheck username (full address) and the generated password; basic auth may be disabled for the account
Prompted again and againApp does not support the password type or needs OAuthUpdate the app or switch to OAuth
Organisation account refusesAdministrator disabled basic authenticationAsk the administrator or use a sending service

Summary and next steps

Create an app password only when an app truly cannot use modern sign-in, name it, store it securely and revoke it when finished. For anything that sends on behalf of a business, move to proper sending credentials and authenticate your domain with SPF, DKIM and DMARC. Check your provider's documentation for the current steps, because menus and policies change often.

Send business email without a personal mailbox Use dedicated SMTP credentials on your own authenticated domain.

See the SMTP relay

References and further reading

Frequently asked questions

What is an app password?

A generated password that lets one app sign in to your mail account without a second-factor prompt, used in place of your normal password.

Why is there no app password option on my account?

Usually because two-step verification is off, only security keys are used, advanced protection is on, or an administrator disabled it.

Is an app password safe?

It is safe if kept private and used for one app, but it bypasses your second factor, so treat it like a full password and revoke it when unused.

Can I use an app password to send marketing email?

Technically it may connect, but personal mailboxes have low limits and weak domain control; use a dedicated sending service instead.

How do I revoke an app password?

Open the app password list in your account security settings and remove the entry for that app.

Topics#app passwords#authentication#two-factor#security#smtp
Was this guide helpful?Your answer helps us improve our documentation.

Start sending in minutes.

Create an account, add your domain and send your first email.

Get started Talk to sales