Using Google Workspace, Gmail or G Suite for SMTP
Prerequisites
- A Gmail or Google Workspace account
- Two-Factor Authentication enabled on your Google account
- Access to the application where you want to configure SMTP
Step 1: Enable Two-Factor Authentication
- Go to Google Account
- Select Security from the left-hand menu
- Under "How you sign in to Google," select 2-Step Verification
- Follow the on-screen instructions to enable it
Step 2: Generate an App Password
- Go to the App Passwords page
- Sign in to your Google account if prompted
- Enter a name for the password (e.g.
WP CompressorSMTP) - Click Create
- Copy the 16-character password that appears
Step 3: Configure SMTP Settings
Use the following settings in your application:
Setting | Value |
|---|---|
SMTP Server | |
Port | |
Username | Your full Gmail address (e.g. |
Password | The 16-character app password from Step 2 |
587 with TLS is recommended for most applications.Troubleshooting
- Authentication errors — confirm there are no spaces in the app password
- Connection refused — check that your application supports TLS or SSL and matches the port used
- Sending limits — standard Gmail accounts are limited to ~500 emails per day; Google Workspace accounts allow up to ~2,000
Updated on: 03/02/2026
Thank you!
