Gmail no longer accepts plain passwords from third-party apps. Google removed Less Secure App Access for consumer accounts on 30 May 2022 and for Workspace accounts on 1 May 2025 (after one paused rollout and a slipped cutover). Two authentication methods remain: OAuth 2.0 and App Passwords. Both work. They differ in setup time, in how much of the mailbox they open, and in what breaks them. Changing the Google account password breaks both.
This piece is the decision between the two. For the broader WordPress email setup context that Gmail relay sits inside (including when a dedicated transactional provider is the better answer than the Gmail SMTP path), see How to set up email on WordPress.
OAuth 2.0
OAuth grants access through tokens instead of passwords. The app redirects to Google’s consent screen, the user approves, and Google issues an access token and a refresh token. The app uses the access token to authenticate SMTP sessions; when it expires (typically after one hour), the refresh token fetches a new one automatically. The app never sees the user’s Gmail password.
Setup requires creating a project in the Google Cloud Console, enabling the Gmail API, configuring an OAuth consent screen, and generating OAuth client credentials (client ID and secret). For a step-by-step walkthrough, see How to get OAuth 2.0 credentials on Google.
The process takes 10-15 minutes for someone familiar with the Google Cloud Console, longer for a first attempt. Google does not require verification for a WordPress SMTP plugin that authenticates the site owner’s own account. Its rules
exempt personal use, and its help page on unverified apps
names SMTP plugins for WordPress. If Google’s unverified-app screen appears for the requested scopes, the owner can click through it when authorizing. That exemption is separate from Google’s Internal user type, which is for Workspace organisations and shows no such screen.
What ends an OAuth connection: a password change, among other things. Google
revokes access and refresh tokens that carry mail scopes when the account password changes, and its
list of reasons a refresh token stops working includes a password change when the token has Gmail scopes. A mailer needs a Gmail scope, so the plugin stops sending until someone authorizes it again. On Workspace, Google says these tokens are revoked when the password changes, not when it expires. Its
admin reset instructions say third-party mail apps must get a new OAuth token after a password reset. Google’s list of reasons also has the owner removing the app’s access and the token going unused for six months.
What can break: if the Google Cloud Console project is deleted, if a Workspace admin restricts the OAuth client’s API scope, or – the non-obvious one – if the app’s user type is External and its publishing status is still “Testing”. Refresh tokens from such an app expire after 7 days. A WordPress site configured against a testing-mode OAuth app will lose authentication weekly until the app is published to “In production” and the plugin is authorized again. Publishing does not require verification for a site owner’s own mailer. The SMTP error gives no indication that consent screen status is the cause.
App Passwords
App Passwords are 16-character codes generated in the Google Account security settings. They replace the Gmail password for a single app or device. Generating one requires
2-Step Verification enabled on the account.
Setup takes under two minutes: go to
myaccount.google.com/apppasswords, name the app, copy the generated code, paste it as the SMTP password. No API project, no consent screen, no client credentials.
What ends an App Password: the same password change. Every password rotation – whether voluntary, forced by a security policy, or triggered by a compromise response – kills every App Password on the account. A WordPress site using an App Password for SMTP will silently stop sending email until the App Password is regenerated and updated in the plugin settings.
App Passwords are also tied to the account that generated them. If a team member leaves and their Google account is suspended or deleted, any WordPress site using that account’s App Password loses SMTP access immediately. For shared WordPress sites, this creates an operational dependency on a specific person’s account. An OAuth connection belongs to one account in the same way.
A Workspace organisation that enforces security keys for 2-Step Verification
cannot also let its users sign in with App Passwords. An OAuth app does not depend on App Passwords, though an admin can restrict which apps the organisation’s users may authorize.
For WordPress sites
Use OAuth if your SMTP plugin supports it, and authorize the plugin again after every password change. WP Mail SMTP, FluentSMTP, and Post SMTP all include native Gmail OAuth integrations. Three things favour it:
- Google recommends against App Passwords. Its help page calls them
“unnecessary in most cases”. - It can be limited to sending. FluentSMTP and Post SMTP request only the
gmail.sendscope, which allows sending but not reading mailbox data. An App Password carries no send-only scope; Google describes it as giving a legacy app or device access to the Google Account. WP Mail SMTP requestshttps://mail.google.com/, which grants full mailbox access, so OAuth in that plugin is not limited to sending. - It works on some accounts that have no App Passwords. Those are accounts whose 2-Step Verification uses only security keys, including every user in a Workspace organisation that enforces them. Advanced Protection also blocks App Passwords. For OAuth on accounts enrolled in Advanced Protection, Google
limits third-party access to sensitive data to verified apps; check whether the OAuth app used by the plugin is verified and allowed for that account.
After a password change, authorize the plugin again if it uses OAuth, or generate a new App Password and paste it in. If mail has to keep flowing through a password change, use a transactional email provider: its SMTP credential or API key does not depend on a Google password.
Use App Passwords when OAuth is impractical:
- Headless or CLI-only servers where the browser-based OAuth consent redirect cannot complete
- Hosting environments that block outbound HTTPS to Google’s token endpoint (rare, but some locked-down hosts restrict egress)
- Quick testing where the site is temporary and two minutes of setup is worth more than a narrower credential
SMTP settings (both methods)
Both OAuth and App Passwords connect to the same Gmail SMTP server:
| Setting | Value |
|---|---|
| Host | smtp.gmail.com |
| Port | 587 (STARTTLS) or 465 (SSL/TLS) |
| Encryption | TLS |
| Username | Full Gmail address ([email protected] or [email protected] for Workspace) |
| Password | App Password (16-char code) or OAuth token (handled by plugin) |
Gmail’s sending limits apply regardless of authentication method: 500 emails per day for consumer accounts and 2,000 per day for paid Workspace accounts. A Workspace trial gets 500 a day, and Google raises a new account to the paid limits only after the domain has cumulatively paid $100 USD. A WooCommerce store processing more than a few hundred orders per day will hit these limits. For higher volumes, use a dedicated A transactional email is the automated message a WordPress site sends in response to a single user action – a password reset, an order confirmation, a form receipt – addressed to the user who triggered it. Read full reference → relay like SMTP2GO or Amazon SES instead of Gmail.
LSA sunset dates verified against
Google Workspace blog and
Google support. Gmail SMTP settings verified against
Google support documentation.
Corrections
- 2026-11-25: an earlier version said OAuth tokens survive a password change and recommended OAuth for that reason. Google revokes tokens that carry Gmail scopes when the account password changes, as it does App Passwords. It also described an Admin Console setting that turns App Passwords off; what Google documents is that enforcing security keys rules them out.
- 2026-11-25: an earlier version called a site owner authorizing their own account “internal use”. In Google’s terms Internal is a user type for Workspace organisations; a site owner’s own mailer is exempt from verification as personal use.
- 2026-11-09: an earlier version gave every Google Workspace account a 2,000-a-day sending limit. A Workspace trial gets 500 a day, and Google raises a new account’s limits only after the domain has cumulatively paid $100 USD.

