Gmail SMTP Not Working? Fix It in 10 Steps
In this article
If Gmail SMTP is not working, the most common cause is an incorrect app password, an outdated security setting, or a wrong SMTP port. Here’s the shortest fix: use SMTP host smtp.gmail.com, port 587 (TLS) or 465 (SSL), enable 2-Step Verification, and generate a 16-character app password. Then update your email client with that password. Below is the full step-by-step guide to diagnose and resolve the issue.
What You'll Need
- Your Gmail address and the password you use to log in
- Access to your Gmail account settings (via browser)
- The email client or app where SMTP is failing (e.g., Outlook, Thunderbird, WordPress, a mobile app)
- Your email client’s SMTP configuration settings (usually found in its account or server settings)
Step-by-Step
- Check Gmail's server status. Visit the Google Workspace Status Dashboard (status.cloud.google.com) and confirm that Gmail shows no service disruption. If there is an outage, wait and retry later.
- Verify your SMTP settings. In your email client, make sure the outgoing server (SMTP) is set to
smtp.gmail.com. Use port 587 with TLS (STARTTLS) or port 465 with SSL. Do not use port 25—Gmail blocks it. - Ensure your email client uses the correct authentication method. Gmail requires OAuth2 or an app-specific password. If your client only supports basic password authentication, you must use an app password, not your regular Gmail password.
- Enable 2-Step Verification. Go to your Google Account (myaccount.google.com) > Security > 2-Step Verification. Turn it on. This is mandatory for app passwords.
- Create an app password. After enabling 2-Step Verification, go to myaccount.google.com > Security > App passwords. Select “Mail” and your device, then click “Generate.” Copy the 16-character password (it appears in a yellow box).
- Update your email client with the app password. Replace your normal Gmail password with the app password in your client’s SMTP authentication field. Make sure there are no spaces.
- Check “Allow less secure apps” (if using an older client). This option has been removed by Google. If your client requires it, you must switch to a more modern client that supports OAuth2 or app passwords.
- Confirm the “From” address matches your Gmail address. Many SMTP failures happen because the client sends from a different address. Use your full Gmail address (e.g., you@gmail.com) as the sender.
- Test the connection. In your email client, send a test email. If it fails, note the exact error message (e.g., “535 5.7.8 Username and Password not accepted”).
- If using a firewall or antivirus, temporarily disable it. Some security software blocks SMTP ports. Re-enable after testing.
Common Mistakes
- Using your regular Gmail password instead of an app password—this is the #1 cause.
- Wrong port or encryption. Mixing up 587/TLS and 465/SSL will cause connection errors.
- Leaving “Require SSL” unchecked when using port 465, or checking it when using 587.
- Entering the app password with spaces—it must be typed as a continuous string.
- Using an old Gmail address that has been deactivated or a Google Workspace account with custom domain settings that differ.
Tips
- Use port 587 with TLS for maximum compatibility with most email clients.
- If your client supports OAuth2 (like Outlook or Thunderbird), use that instead of app passwords—it’s more secure and doesn’t require 2-Step Verification.
- Keep your email client updated to avoid authentication protocol mismatches.
- For WordPress or other web apps, consider using a dedicated SMTP plugin (e.g., WP Mail SMTP) that handles Gmail authentication correctly.
Troubleshooting
If you still can’t send email, try these in order:
- Check the error message. “Username and Password not accepted” means the app password is wrong or not generated. “Connection timed out” means a firewall or port issue.
- Test with a different client. Try configuring the same Gmail account in another email app (e.g., phone’s default mail app). If it works there, the problem is in your original client’s settings.
- Reset your app password. Generate a new one and update it everywhere.
- Check if your ISP blocks port 587 or 465. Some networks restrict SMTP. Try using Gmail’s web interface to see if you can send from a browser—if yes, your network is likely blocking the port.
- If using Google Workspace (custom domain), ensure your admin hasn’t disabled SMTP or set up restrictions. Check with your domain administrator.
- As a last resort, uninstall and reinstall your email client. This clears corrupted settings, but back up any local data first.
Frequently Asked Questions
Why does Gmail SMTP reject my password even though I typed it correctly?
Because Gmail no longer accepts your regular password for third-party apps. You must use an app password (requires 2-Step Verification) or OAuth2.
Can I use Gmail SMTP without 2-Step Verification?
No, not with a regular password. Google has removed the “Allow less secure apps” option. You must enable 2-Step Verification to generate an app password.
What is the difference between port 587 and 465?
Port 587 uses STARTTLS (upgrade to TLS after connection), while port 465 uses SSL/TLS from the start. Both work with Gmail, but 587 is more standard.
How do I find my app password?
Go to myaccount.google.com > Security > App passwords. You’ll need 2-Step Verification enabled. The password is shown once—copy it immediately.
Why does my SMTP work on my phone but not on my computer?
Often it’s because the phone uses a different authentication method (like OAuth2) or has different port settings. Compare the two configurations.
Can I use Gmail SMTP for sending bulk emails?
No. Gmail’s sending limits are strict (e.g., 500 emails per day for free accounts). For bulk email, use a dedicated SMTP service like SendGrid or Amazon SES.