To enable SMTP in Gmail, you need to turn on Gmail access in your Google account, allow SMTP settings, and use Gmail’s SMTP server details (smtp.gmail.com with the correct port, encryption, and authentication). Once enabled, Gmail SMTP lets you send emails from third-party apps, websites, or email clients securely using your Gmail account.
Step-by-Step: How to Enable SMTP in Gmail
Step 1: Enable IMAP in Gmail (Required)
Even though SMTP is for sending emails, Google requires IMAP to be enabled.
- Log in to your Gmail account
- Click the gear icon → See all settings
- Go to the Forwarding and POP/IMAP tab
- Under IMAP access, select Enable IMAP
- Click Save Changes
Step 2: Enable 2-Step Verification (Mandatory)
Google no longer allows less secure app access. To use SMTP, you must enable 2-Step Verification.
- Go to Google Account → Security
- Under “Signing in to Google,” turn on two-Step Verification
- Verify using SMS or an authenticator app
This step is essential before generating an App Password.
Step 3: Create an App Password for SMTP
App Passwords allow third-party apps to send email without exposing your main Gmail password.
- Open Google Account → Security
- Click App passwords
- Select:
- App: Mail
- Device: Other (Custom)
- Name it (e.g., “SMTP WordPress”)
- Copy the 16-character password
Save this password securely. You will not see it again.
Step 4: Configure SMTP in Your Application
Now enter the Gmail SMTP details in your app or email client.
Example Configuration:
- SMTP Host: smtp.gmail.com
- Port: 587
- Encryption: TLS
- Username: [email protected]
- Password: App Password (not your Gmail password)
Most platforms like WordPress, Outlook, Thunderbird, PHPMailer, and CRM tools support these settings.
How to Enable SMTP in Gmail for WordPress
If you’re using Gmail SMTP for WordPress:
- Install an SMTP plugin (e.g., WP Mail SMTP)
- Choose Other SMTP or Gmail
- Enter Gmail SMTP details
- Use your App Password
- Send a test email to confirm success
This fixes common WordPress email issues like password reset emails not sending.
Gmail SMTP Limits You Should Know
Google imposes daily sending limits:
- Gmail (Free): ~500 emails/day
- Google Workspace: ~2,000 emails/day
Exceeding limits may temporarily block email sending.
If you send bulk or marketing emails, consider a dedicated SMTP service instead.
Common Gmail SMTP Errors & Fixes
Authentication Failed
- Make sure you’re using an App Password
- Double-check your Gmail address
Connection Timeout
- Try port 587 with TLS
- Check firewall or hosting restrictions
Emails Going to Spam
- Add SPF, DKIM, and DMARC records
- Avoid spammy content
- Use proper sender name and domain
Security Best Practices for Gmail SMTP
- Never share your App Password
- Use SSL/TLS encryption only
- Monitor Google account security alerts
- Revoke unused App Passwords regularly
- Avoid using Gmail SMTP for mass email blasting
Gmail SMTP vs Other SMTP Providers
| Feature | Gmail SMTP | Dedicated SMTP |
|---|---|---|
| Cost | Free | Paid |
| Setup | Easy | Moderate |
| Sending Limit | Low–Medium | High |
| Best For | Websites, apps | Email marketing |
If your email volume grows, migrating to a dedicated SMTP service is recommended.
Final Thoughts
Enabling SMTP in Gmail is a simple yet powerful way to ensure your emails are sent securely and reliably. By enabling IMAP, activating 2-Step Verification, generating an App Password, and using the correct SMTP settings, you can connect Gmail to almost any application or website.
For personal projects, blogs, and small businesses, Gmail SMTP is often the perfect solution. Set it up correctly once, and you’ll enjoy better email delivery, fewer errors, and peace of mind.



