Gmail SMTP Settings
The current Gmail SMTP server, port, encryption and authentication requirements, plus focused fixes for failed authenticated outgoing mail submission.
Jump to your problem 4
Quick answer
Gmail server settings
- SMTP Outgoing STARTTLS
-
smtp.gmail.comport 587
- IMAP Incoming SSL/TLS
-
imap.gmail.comport 993
- POP3 Download SSL/TLS
-
pop.gmail.comport 995
- Authentication
- Use “Sign in with Google” (OAuth). Older clients without Google sign-in may require an app password from an eligible account with 2-Step Verification.
- IMAP access
- Always enabled for personal Gmail accounts; Workspace administrators may restrict it
- Alt SMTP port
- 465 with SSL/TLS
- Username
- Your complete Gmail address, such as name@gmail.com
- POP access
- Enable it first in Gmail under Settings → See all settings → Forwarding and POP/IMAP
Where to type these
The values above are Gmail’s. Where you enter them depends on the app — each guide below is the same set of fields, in that app’s own screens.
Gmail SMTP handles authenticated outgoing mail submission. Gmail accepts authenticated client submission on port 587 with STARTTLS and port 465 with SSL/TLS. Use the complete Gmail or Workspace address and an OAuth2 Google sign-in whenever possible.
SMTP has its own saved credential in many applications, so replacing only the incoming password can leave messages stuck in Outbox.
When sending from an alias, add and verify that address in Gmail first; changing the From field in a desktop client does not by itself authorize it.
Google account sending limits and automated-abuse controls still apply to SMTP, so a temporary rejection after unusual volume is not corrected by changing ports. A Google security alert or revoked OAuth grant can invalidate a previously working client without changing any server value. Reauthorize the Google account through the application’s account manager and check recent security activity before generating another app password.
Gmail SMTP settings
| Protocol | Server | Port | Encryption |
|---|---|---|---|
| SMTP | smtp.gmail.com | 587 | STARTTLS |
Authentication
An app password is a fallback only for eligible Google Accounts with 2-Step Verification. It may be unavailable for managed accounts, Advanced Protection or security-key-only setups. A current OAuth-capable client should use the Google sign-in window instead.
Use the complete mailbox address unless the official account screen explicitly supplies a different login. SMTP does not download mail. Keep the IMAP account configured separately for incoming folders.
Add the account safely
Prefer the client’s built-in Gmail option when it exists, because it can select the supported authorization flow. Enable outgoing-server authentication and select the same supported authorization method used by the account. Port 587 expects STARTTLS, while port 465 expects SSL/TLS from the first connection; never mix a port with the other mode. Send a plain test message to an unrelated mailbox and confirm that a copy appears in the provider’s Sent folder.
Gmail SMTP troubleshooting
Remove any saved Basic Authentication password and add the account again through its Google provider button. For app-password use, verify 2-Step Verification eligibility and generate a fresh 16-character password. For a managed Workspace mailbox, ask the administrator whether IMAP or OAuth client access is restricted. Gmail labels deserve a separate check after authentication succeeds: compare the client’s Sent, Drafts, Spam and Trash assignments with Gmail web settings, and decide whether All Mail should be synchronized on that device. A mailbox that authenticates but repeatedly downloads a large archive has a synchronization-scope problem, not an SMTP password problem. Google security activity can also show whether the attempted client sign-in was blocked or its OAuth grant was revoked.
If mail receives but will not send, leave the incoming settings alone. Inspect the separate SMTP password, username, authentication switch and From identity. A timeout on one network but success through a mobile hotspot suggests outbound-port filtering; a provider rejection usually includes an SMTP code worth preserving.
For a Gmail-only send problem, verify the outgoing account still points to smtp.gmail.com and that the chosen port matches its TLS mode. Then inspect the From identity: Gmail must know and verify an alias before a client can use it reliably. Preserve Google’s returned SMTP response, especially a temporary rate or policy rejection, because repeated retries can extend the block. Test a short plain-text message without a large attachment, then reauthorize the Google connection if Account Security shows a revoked grant. Check Gmail’s Sent view after the test; a delivered message with no server-side sent copy can reveal a client configured to store sent mail locally. If one network blocks submission, compare 587 and 465 only with their correct encryption modes and do not turn certificate validation off.
If the error changes after editing several fields, restore the official values and test one correction at a time. This distinguishes authentication, TLS, network and provider-policy failures instead of hiding the original cause.
How this guide was checked · October 2026
Verified against 4 official sources
Every step, setting and limit in this guide was checked against the provider’s own documentation on support.google.com. Anything we couldn’t confirm was left out.
Questions
Frequently asked questions
What is Gmail's SMTP server?
smtp.gmail.com on port 587 with STARTTLS, or port 465 with SSL/TLS. Sign in with your full Gmail address.
Why won't Gmail accept my password for SMTP?
Google no longer accepts ordinary passwords over SMTP. Use a client that signs in with Google, or generate an app password.
How many emails can I send through Gmail SMTP per day?
Google caps daily volume to contain compromised accounts. Hitting it produces a temporary block that clears on its own. For bulk sending, use a dedicated service.
Can I use Gmail's SMTP for my website's contact form?
Technically yes with an app password, but it is a poor fit: personal sending limits apply, and a suspension takes your own mail down with it.
Related guides
More Gmail guides
Gmail
How to Unsubscribe from Emails in Gmail
Use Gmail’s Unsubscribe button or the Manage subscriptions page to stop newsletters and promotions — and know the difference between unsubscribing and blocking.
3 min read
Gmail
How to Archive Emails in Gmail (and Find Them Again)
Archiving clears your inbox without deleting anything. Here’s how to archive on every device, where archived emails go, and how to get them back.
3 min read
Gmail
How to Recover Deleted Emails in Gmail
Deleted Gmail messages wait in Trash for up to 30 days. Here’s how to move them back on any device, where else to look, and what can’t be recovered.
3 min read
Gmail
How to Forward Emails in Gmail (One, Many or Automatically)
Forward one email, a whole conversation or several messages at once — or set Gmail to forward new mail to another address automatically.
3 min read
Gmail
How to Block (and Unblock) Someone in Gmail
Block a sender in Gmail so their emails go to Spam, unblock them, manage your blocked list — and when unsubscribing or reporting spam or phishing works better.
3 min read
Gmail
How to Add an Email Signature in Gmail
Create, edit and remove a Gmail signature, use different signatures for new emails and replies, the 10,000-character limit and image sizes — and fixes for broken signatures.
4 min read