---
title: "SMTP settings for Gmail"
url: "https://coldagentai.com/smtp-settings/gmail.md"
canonical_url: "https://coldagentai.com/smtp-settings/gmail"
last_updated: "2026-10-23"
type: "reference"
summary: "Gmail SMTP server smtp.gmail.com, port 465. Copy the settings, see the sign-in notes and the help pages behind each setting. Common errors and fixes included."
related: ["https://coldagentai.com/smtp-settings.md", "https://coldagentai.com/smtp-settings/sending-limits.md", "https://coldagentai.com/smtp-settings/icloud.md", "https://coldagentai.com/smtp-settings/google-workspace.md", "https://coldagentai.com/smtp-settings/microsoft-365.md", "https://coldagentai.com/smtp-settings/hostinger.md"]
install: "claude mcp add --transport http coldagentai-free https://coldagentai.com/api/mcp"
---

# SMTP settings for Gmail

> **For AI agents:** the complete index of ColdAgentAI pages is [llms.txt](https://coldagentai.com/llms.txt). Every page is also served as markdown at its URL plus .md.

Gmail SMTP server smtp.gmail.com, port 465. Copy the settings, see the sign-in notes and the help pages behind each setting. Common errors and fixes included.

Settings for sending mail through Gmail: SMTP server smtp.gmail.com, 465 (SSL/TLS). Read from the provider's own help pages on 2026-10-19.

## Settings

### SMTP (sending)

- Host: `smtp.gmail.com`
- Port 465: `SSL/TLS`
- Source: https://support.google.com/a/answer/176600

## Username and password

- Sign-in method stated on the page read: App password.
- Use the username your provider shows beside these settings. Many mailbox providers use the full email address.
- Put the app password or generated code the sign-in method names into the password field. Do not paste your everyday account password.

## Connect it to a sending tool

1. In the tool you send from, add a mailbox and choose the custom IMAP and SMTP option. ColdAgentAI connects mailboxes that sign in with a password, app password or key over IMAP and SMTP. [IMAP and SMTP mailboxes in ColdAgentAI](https://coldagentai.com/product/inboxes.md)
2. Enter smtp.gmail.com as the SMTP server. Use one of the ports listed under settings (465) and set the security mode shown beside it.
3. Sign in with the method the page states: App password.
4. If your tool reads replies, it also needs the provider's IMAP host and port from its help page.
5. Send one test message to an address you own and open it to check the sender, the subject and where it landed.
6. Keep each mailbox's daily sending modest and let volume rise gradually. Provider limits are compared on the sending limits page. [SMTP sending limits compared](https://coldagentai.com/smtp-settings/sending-limits.md)

## Common errors

| Error | Usual cause | What to try |
| --- | --- | --- |
| 535 authentication failed | The username or password was refused. An everyday account password is often refused when the provider wants a different credential. | Re-check the username, then use the kind of credential the sign-in method above names. |
| 534 or 5.7.9 app password needed | The provider wants a stronger sign-in than a plain password, such as an app-specific password. | Turn on the provider's two-step setting if it asks for one, create an app password, and use it in the password field. |
| 530 authentication required | The server wants you to sign in before it takes mail, or the secure connection was not set up first. | Switch authentication on in your tool and set the security mode that matches the port you chose. |
| 554 message rejected | The server refused the message: the sender address is not allowed for this login, the content or recipient was blocked, or a policy limit was hit. | Send from the address that belongs to the login, read the text after the code, and try one plain test message. |
| 421 service not available | A temporary refusal, usually too many connections or messages in a short time. | Wait, lower your sending speed, and retry. Repeated 421 replies mean you are over a limit. |
| Timeout or connection refused | Your network blocks the port, the host name has a typo, or the security mode does not match the port. | Try another port listed for this provider, check the host spelling, and match SSL/TLS or STARTTLS to the port. |

## Sending limits

| Limit | Figure | Source |
| --- | --- | --- |
| Daily | 500 emails sent in a day | https://support.google.com/mail/answer/22839 |
| Per message | 500 recipients in a single email | https://support.google.com/mail/answer/22839 |

## Sources

- https://support.google.com/a/answer/176600: read on 2026-10-19
- https://support.google.com/mail/answer/7126229: read on 2026-10-19
- https://support.google.com/mail/answer/22839: read on 2026-10-19

## Questions

### What is the SMTP server for Gmail?

The page we read gives smtp.gmail.com. We read it on 2026-10-19.

### Which port and security mode does Gmail use for sending?

The page states 465 (SSL/TLS). Choose the security mode that matches the port.

### How do I sign in to Gmail from a sending tool?

The page states: App password. Use the credential that method names rather than your everyday password.

### What are the sending limits for Gmail?

Daily: 500 emails sent in a day; Per message: 500 recipients in a single email. Check the source for the current figure before planning volume.

### Where do these settings come from?

They come from Gmail's own help pages, read on 2026-10-19. Spot a setting that changed? Write to hello@coldagentai.com.

## Related providers

- [iCloud Mail](https://coldagentai.com/smtp-settings/icloud.md)
- [Google Workspace](https://coldagentai.com/smtp-settings/google-workspace.md)
- [Microsoft 365](https://coldagentai.com/smtp-settings/microsoft-365.md)
- [Hostinger Email](https://coldagentai.com/smtp-settings/hostinger.md)
- [All SMTP settings](https://coldagentai.com/smtp-settings.md)
- [Sending limits compared](https://coldagentai.com/smtp-settings/sending-limits.md)

## Related

- [SMTP settings finder](https://coldagentai.com/smtp-settings.md)
- [SMTP sending limits compared](https://coldagentai.com/smtp-settings/sending-limits.md)
- [SMTP settings for iCloud Mail](https://coldagentai.com/smtp-settings/icloud.md)
- [SMTP settings for Google Workspace](https://coldagentai.com/smtp-settings/google-workspace.md)
- [SMTP settings for Microsoft 365](https://coldagentai.com/smtp-settings/microsoft-365.md)
- [SMTP settings for Hostinger Email](https://coldagentai.com/smtp-settings/hostinger.md)
