DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
VGSources
Blog

How to Configure Gmail SMTP for WordPress Emails

A complete guide to connecting WordPress email to Gmail or Google Workspace SMTP, including OAuth setup, Google Cloud redirect URIs, app passwords, testing, deliverability and limits.
Length10 min Posted Quest giverVGSources Team

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For WordPress sites that need to send mail through Gmail or Google Workspace, use smtp.gmail.com with port 587 and TLS/STARTTLS, or port 465 with SSL. Connect the site through a maintained SMTP plugin using Google OAuth 2.0 whenever possible. Use an app password only when the selected plugin cannot complete OAuth, and always send a test message before relying on the configuration.

What this configuration does

WordPress can generate messages for contact forms, password resets, order notices, comments and other events, but the site still needs a mail server to deliver them. An SMTP plugin routes those messages through a Gmail or Google Workspace account instead of relying on the web host’s default mail function.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The Gmail SMTP service identifies itself as smtp.gmail.com. Gmail’s IMAP, POP and SMTP services support OAuth 2.0, with XOAUTH2 used to present an OAuth access token to the server. That means a modern WordPress mailer can authorize the sending account without storing its normal Google password in WordPress.

This setup is appropriate for ordinary site notifications and moderate transactional mail. It is not a substitute for a high-volume marketing or bulk-mail system. Google Workspace administrative guidance lists a 2,000-message-per-day limit for the Gmail SMTP server option; a site that regularly approaches that level should assess a dedicated transactional provider.

#1 Best Overall
Sale
Gaoye Blue Light Blocking Glasses
  • BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
  • EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
  • COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
  • LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
  • WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.

SMTP host, ports and encryption

Setting Recommended value When to use it
SMTP host smtp.gmail.com Use this fully qualified Gmail SMTP service name.
Port 587 Use TLS or STARTTLS. This is the clearest default for most WordPress plugins.
Port 465 Use SSL when the plugin labels the connection as SSL.
Alternative port 25 Google Workspace documentation lists it, but many hosts restrict port 25 and it is not the usual WordPress choice.
Username Your complete Gmail or Google Workspace address For example, the entire address rather than only the part before the at sign.
Authentication Google OAuth 2.0, or an app password as a fallback Do not enter the account’s ordinary Google password.

Choose one encryption mode that matches the port. Do not select SSL on port 587 or STARTTLS on port 465 unless the plugin’s documentation explicitly defines those labels differently. If the plugin offers an automatic encryption option, verify the resulting connection with its test-mail tool.

What you need before starting

  • Administrator access to the WordPress dashboard.
  • A Gmail or Google Workspace account that is allowed to send the site’s mail.
  • A maintained SMTP plugin with Gmail or Google Workspace OAuth support, such as the WP Mail SMTP Gmail/Google Workspace mailer.
  • Access to Google Cloud to create or select a project and configure an OAuth client.
  • A final sender address and display name. Keep the sender address equal to the authenticated account, or use an alias that the account is authorized to send as.

Managed Google Workspace accounts can have organization-wide restrictions on third-party OAuth applications or SMTP use. If a personal account works but a Workspace account does not, the administrator may need to review those policies before troubleshooting the WordPress fields.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

OAuth 2.0 or an app password?

OAuth 2.0 is the preferred route when the plugin provides a Sign in with Google or equivalent authorization button. Google authorizes the application and supplies tokens; the plugin does not need the account’s normal password. Google recommends Sign in with Google when it is available.

Rank #2
Windex Gaming Cleaning Wipes, Pre-Moistened Wipes to Instantly Clean all Gaming Gear and Electronics, Resealable Packaging for a Freshness Lock, 25 count (Pack of 1)
  • WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
  • AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
  • PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
  • ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
  • COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed

An app password is a generated 16-digit passcode intended for an application or device that cannot complete Google’s OAuth flow. Google states that app passwords can only be used on accounts with 2-Step Verification enabled. Treat the passcode as a credential: store it only in the SMTP plugin, never publish it, and revoke it when it is no longer needed.

Consideration OAuth 2.0 App password
Security model Google authorization and OAuth access tokens; the normal account password is not entered into WordPress. A generated 16-digit password is entered into the SMTP client.
Initial setup Configure the consent screen, create a web-application OAuth client, add the plugin’s redirect URI, then authorize the account. Enable 2-Step Verification and generate a dedicated app password.
Plugin requirement The selected mailer must support Gmail or Google Workspace OAuth. Useful when the selected SMTP client cannot complete OAuth.
Recovery Reauthorize if the token or client configuration is removed or changed. Google revokes app passwords after the account password changes; generate a replacement and update WordPress.
Organization policy May be blocked if an administrator restricts third-party OAuth applications. May also be restricted by Workspace security policy and still requires 2-Step Verification.

Configure the WordPress SMTP plugin with OAuth

1. Install and activate a maintained mailer

  1. In WordPress, open Plugins and install a maintained SMTP plugin that documents Gmail or Google Workspace OAuth support.
  2. Activate it, then open its mailer or SMTP settings page.
  3. Select the Gmail or Google Workspace mailer rather than a generic username-and-password SMTP form.
  4. Copy the plugin-generated Authorized Redirect URI exactly as displayed. Keep the page open; you will paste this value into Google Cloud.

The exact menu names vary by plugin, but the sequence is the same: choose the Gmail mailer, obtain its redirect URI, create the Google OAuth client, enter the client credentials, authorize the account and run a test.

2. Create or select a Google Cloud project

  1. Open Google Cloud and select an existing project or create a new project dedicated to the WordPress mail connection.
  2. Configure the project’s OAuth consent screen. Enter the application information requested by Google and select the account type that matches your Gmail or Workspace use.
  3. Set the publishing status required by the project. A consent screen left in testing or otherwise restricted status can limit which accounts are allowed to authorize it, so follow the status and test-user requirements shown in the Google Cloud interface.
  4. If the plugin’s instructions require it, enable the Gmail API for the project. Some plugin flows use the Gmail API while others present the requirement during setup; follow the mailer’s documented prerequisite rather than enabling unrelated APIs.

3. Create a web-application OAuth client

  1. In the project’s credentials area, create an OAuth client ID for a Web application.
  2. Under authorized redirect URIs, paste the URI copied from the WordPress plugin.
  3. Compare the two values character by character. Preserve the protocol, domain, path, capitalization and trailing characters. A redirect URI that is merely similar is not sufficient.
  4. Create the client and copy its client ID and client secret. Keep the secret private; it belongs in the WordPress plugin and should not be posted in support forums or page content.

4. Add the client credentials to WordPress

  1. Return to the plugin’s Gmail or Google Workspace mailer settings.
  2. Paste the Google OAuth client ID into the client-ID field and the client secret into the client-secret field.
  3. Save the settings if the plugin requires a separate save step.
  4. Click the plugin’s authorization or Sign in with Google button.
  5. Sign in to the exact Gmail or Workspace account that should send the WordPress messages.
  6. Review the requested permissions and grant access. Return to WordPress when Google redirects you back to the plugin.

Do not authorize one account and then configure a different address in the From field unless the authenticated account has that address configured as an authorized sending alias. Mismatched identities can cause authentication errors or poorer delivery.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
LISEN Cell Phone Stand Phone Holder for Desk, Office Decor Gadgets for Men
  • Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
  • Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
  • Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
  • ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
  • Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)

Set the sender identity

From address

Set the From address to the account that completed OAuth, or to an alias that account is permitted to use. Avoid presenting an unrelated domain as the sender while authenticating to Gmail; the discrepancy can trigger authentication or filtering problems.

From name

Use a recognizable site or organization name. The name affects what recipients see, while the From address determines the authenticated sending identity. Keep both consistent with the site and the account.

Reply-To address

If the plugin offers a separate Reply-To field, use it for the address that should receive responses, but do not use Reply-To as a way to disguise an unauthorized From address. Verify the plugin’s behavior with a test message before enabling forms or notifications for visitors.

Rank #4
Ledagic IC+RGBW USB Powered Led Light Bar with App & Remote Control, 2 Pack
  • Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
  • Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
  • 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
  • Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
  • USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC

Send and inspect a test email

  1. Open the plugin’s Email Test, Test Email or similarly named screen.
  2. Send a message to an address you can inspect, preferably outside the sending account.
  3. Confirm that the plugin reports a successful SMTP submission.
  4. Check the recipient’s inbox and spam folder. A successful SMTP handoff does not guarantee inbox placement.
  5. Open the message details or headers and verify the From address, Reply-To address, receiving server, encryption result and authentication-related headers available in the mailbox.
  6. Repeat the test after changing the sender identity, OAuth account or encryption mode. The test should be part of the change procedure, not only an initial setup step.

If the message never arrives, check the plugin’s mail log or error display if available, then inspect the recipient’s spam folder and message headers. Do not assume that a green WordPress success notice proves final delivery.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Use an app password when OAuth is unavailable

Choose this path only when the selected SMTP client cannot complete Gmail OAuth. It is not a replacement for the account’s ordinary password.

  1. Open the Google Account security settings for the sending account.
  2. Turn on 2-Step Verification. Google requires it before an app password can be created.
  3. Create a dedicated app password for the WordPress SMTP connection and copy the generated 16-digit value at creation time.
  4. In the plugin, select its manual SMTP or password-based Gmail option.
  5. Enter smtp.gmail.com as the host, port 587 with TLS/STARTTLS or port 465 with SSL, the complete Gmail or Workspace address as the username, and the generated app password as the password.
  6. Save the settings and send a test email.

Never put the regular Google account password in the plugin. Revoke the app password when the site is retired or the connection is no longer trusted. Google also revokes app passwords after a Google account password change; generate a new one and replace the stored value before testing again.

Best Value
Sale
HUANUO FlowLift™ Dual Monitor Stand, Fully Adjustable Gaming Monitor Desk Mount for 13–32″ Computer Screens, Full Motion VESA 75x75/100x100 with C-Clamp & Grommet Base, Each Arm Holds 4.4 to 19.8 lbs
  • Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
  • Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
  • Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
  • Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
  • Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.

Troubleshoot common failures

Symptom Likely cause Fix
Could not authenticate Wrong OAuth account, client ID or secret; an incorrect sender identity; or an invalid app password. Confirm the authorized account, recheck both client fields, ensure the From address is aligned, or generate a new app password after verifying 2-Step Verification.
Redirect URI or access-blocked error The URI in Google Cloud differs from the plugin’s value, or the consent-screen publishing/test-user configuration does not permit the account. Copy the plugin URI again and compare it character for character. Update the OAuth client, save it, then reauthorize the account. Review consent-screen status and allowed test users.
OAuth works for a personal account but not Workspace A Google Workspace administrator may restrict third-party OAuth access or SMTP use. Ask the administrator to review the organization’s application-access and SMTP policies. Do not bypass a managed restriction by repeatedly creating new clients.
Test reports success but mail is in spam Inbox filtering, suspicious-message signals or misaligned domain authentication. Inspect SPF, DKIM and DMARC alignment for the sending domain and the actual From address. Check headers, keep the message content expected by recipients, and avoid using Gmail SMTP as a bulk-mail service.
Connection fails on one port The encryption mode does not match the port, or the hosting network blocks the connection. Use port 587 with TLS/STARTTLS or port 465 with SSL. If the host blocks one route, ask the host about outbound SMTP restrictions before changing credentials.
Messages stop after an account-password change Google revoked the app password. Create a replacement app password and update the plugin, or move the connection to OAuth.

Deliverability checks beyond SMTP authentication

SMTP authentication answers whether Gmail accepted the connection; it does not establish that every recipient will trust or display the message. For a domain-based From address, inspect SPF, DKIM and DMARC alignment and make sure the visible From domain is consistent with the authenticated sending arrangement. A message can pass the plugin test and still be filtered.

Use a recognizable From name, avoid unexplained changes between notifications, and keep the account’s sending pattern within Google’s expectations. The Workspace guidance warns that spam filters may reject or filter suspicious messages. Gmail SMTP should not be treated as a bulk-mail platform simply because WordPress can submit messages through it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Plan for sending limits and account policy

Daily volume

Google Workspace administrative guidance lists 2,000 messages per day for the Gmail SMTP server option. Treat that as a documented service limit, not a target. Count all mail sent through the account, including WordPress notifications and other clients. Sustained transactional or marketing volume belongs in a service designed for that workload.

Workspace administration

Workspace administrators can control whether users may authorize third-party applications and whether SMTP connections are permitted. A plugin configuration that succeeds with a personal Gmail account may therefore fail for a managed address without any WordPress change. Obtain the organization’s approval and use the account’s permitted authentication method.

Credential maintenance

  • Keep OAuth client secrets and app passwords out of page content, theme files and public support tickets.
  • Revoke unused app passwords and OAuth grants when a site or administrator changes.
  • Retest after changing the Google account password, Workspace policy, sender alias, plugin or hosting environment.
  • Record which account owns the OAuth client so another administrator can recover the connection.

A practical decision checklist

  1. Choose a maintained WordPress SMTP plugin with Gmail or Workspace OAuth support.
  2. Use smtp.gmail.com with port 587 and TLS/STARTTLS, or port 465 and SSL.
  3. Prefer OAuth 2.0 and copy the plugin’s exact redirect URI into a Google Cloud web-application client.
  4. Configure the consent screen, publishing status, required permissions and Gmail API setting when the plugin requires it.
  5. Authorize the same account that will appear in the From address, or use a verified sending alias.
  6. If OAuth is impossible, enable 2-Step Verification and use a dedicated 16-digit app password instead of the normal account password.
  7. Send a test message, inspect headers and spam placement, and correct SPF, DKIM or DMARC alignment when needed.
  8. Check Workspace policy and keep the site’s volume comfortably below the documented 2,000-message-per-day SMTP limit.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.