Gmail API or SMTP: how to send cold email from Google Workspace

By the outr team8 min read

In the Gmail API vs SMTP choice, pick the API: if you send cold email from a Google Workspace inbox, connect it through the Gmail API with Google sign-in. SMTP still works, but Google stopped accepting plain passwords for it in March 2025, and the secure ways in ask for more access than a sending tool needs.

What it doesn't change is how many emails you can send, or whether they land in the inbox. Those come down to your domain, your volume and your list. So this is a choice about safety and plumbing. Spend five minutes on it before you hand a tool the keys to your mailbox.

Key points

  • Since March 14, 2025 Google no longer accepts a plain password for SMTP, IMAP or POP; you need OAuth or an app password.
  • Google's daily limit belongs to the user, 2,000 messages a day (500 on a trial), and switching from SMTP to the API does not raise it.
  • SMTP and IMAP over OAuth need the full mail scope, which includes permanent delete; the Gmail API lets a tool ask for less.
  • Google publishes nothing that says the API lands in the inbox more often than SMTP; authentication and volume decide that.
  • Follow-ups only stay in the same thread when the subject matches and the In-Reply-To and References headers are set correctly.

Gmail API vs SMTP at a glance

Both send from Google's servers, as you, from your own address. The difference is how a tool gets in and what it's allowed to do once it's there.

Gmail APIGmail SMTP (smtp.gmail.com)
How you connectSign in with Google, approve accessOAuth or an app password
Plain passwordNever usedNot accepted since March 14, 2025
Narrowest access a sender can ask forSend only (gmail.send)Full mailbox over OAuth (https://mail.google.com/)
Recipients per message500100
Daily sending limitYour account's limitYour account's limit
Reading repliesSame API, separate permissionNeeds IMAP as well

Each row is sourced in the sections below. In one line: on the API, a tool can ask for exactly what it needs. On SMTP, it can't.

What changed for SMTP in 2025

For years you could type your Gmail address and password into any app, tick "allow less secure apps" and send over SMTP. That door is shut.

Google's transition page set the date: from March 14, 2025, "Access to less secure apps will be turned off for all Google Accounts", and "CalDAV, CardDAV, IMAP, SMTP, and POP will no longer work with legacy passwords (basic authentication)." From summer 2024, nobody could connect a less secure app for the first time.

So if an old tutorial tells you to type your password into a cold email tool's SMTP settings, it's out of date. Today there are two ways to send over SMTP to Gmail:

  1. OAuth, the same "Sign in with Google" screen the API uses, passed over SMTP with a method Google calls XOAUTH2.
  2. An app password, a separate password Google generates for one app.

App passwords are the fallback, and Google doesn't hide what it thinks of them. Its app passwords page says "App passwords aren't recommended and are unnecessary in most cases". They only work with 2-Step Verification turned on, and one reason Google lists for the option being missing is simply that you're signed in with a work or school account. On a Workspace inbox, that may be out of your hands.

There's a practical problem too. An app password is still a password. Paste it into a tool and it sits in that vendor's database. Connect five inboxes that way and you've handed out five keys to your mail.

Does the Gmail API land in the inbox more often than SMTP?

Not that anyone can show. We looked, and Google publishes nothing saying mail sent through the API gets better inbox placement than mail sent through smtp.gmail.com. Both leave from Google's own servers, signed with your domain's DKIM key if you've set one up, and the receiving server sees an ordinary Gmail message either way.

So if a vendor sells "API sending" as a deliverability trick, ask for the source. Where your email lands comes down to the usual list: SPF, DKIM and DMARC passing, how many emails you send, how many bounce, and how many people mark you as spam. Our guide to why emails go to spam walks through each one.

The one setting that does matter here is SPF. If your mail goes out through Google, by API or by smtp.gmail.com, the standard Workspace record from Google's SPF page already covers it:

v=spf1 include:_spf.google.com ~all

If a cold email tool sends through its own servers instead of your Google account, your record also needs that tool's include:. Otherwise, as Google's page explains, the ~all at the end tells receiving servers to mark its messages as spam. Before you switch anything, check your domain's records so you know where you stand. The full setup is in SPF, DKIM and DMARC for cold email.

Sending limits are the same either way

Moving from SMTP to the API does not get you more sends.

Google's sending limits page sets them per user:

  • 2,000 messages a day, or 500 on a trial account.
  • 3,000 external recipients a day.
  • Hit a limit and you "can't send new messages for up to 24 hours".

The day is a rolling 24 hours, not midnight to midnight, and Google adds that "Sending limits can change without notice." Trials get no extra room either: "limits aren't increased during the free trial period". Just bought Workspace for a new cold email domain? You're on 500 a day until the trial ends.

The one real difference is recipients per message: 500 through the Gmail API, 100 for SMTP from POP or IMAP users. For cold email it doesn't matter, because every message should go to one person. If you're putting 100 prospects on one email, the API isn't your problem.

And 2,000 is Google's ceiling, not a target. A new inbox sending anywhere near it gets into trouble long before Google cuts it off. A sensible number in practice is worked out in how many cold emails you can send per day.

What a sending tool can see in your inbox

Most people click through this screen without reading it. It's also where the API really wins.

Google sorts every Gmail permission (a "scope") into non-sensitive, sensitive and restricted. From Google's Gmail scopes list:

ScopeWhat it allowsGoogle's class
gmail.sendSends email on your behalfSensitive
gmail.readonlyReads messages and settingsRestricted
gmail.modifyReads, composes and sends, no permanent deleteRestricted
https://mail.google.com/Full access, including permanent deleteRestricted

Now the catch for SMTP. Google's XOAUTH2 page puts it in one line: "The scope for IMAP, POP, and SMTP access is https://mail.google.com/." There's no send-only version. A tool that sends over SMTP with OAuth has to ask for the scope that can read and permanently delete every email you have. Google's own scopes page says to request that one only if an app needs to immediately and permanently delete threads and messages.

A tool on the API can ask for gmail.send and stop there, or add a read scope if it needs to see replies. And it will need to.

A cold email tool still needs to read replies

Sending is half the job. The other half is noticing that someone answered, so their follow-up doesn't go out. Any tool that stops a sequence on reply has to read your inbox, and the Gmail scopes that read mail (readonly, modify and full access) are all restricted.

No need to panic. Just look at who's asking. Google's restricted scope rules say an app that stores or transmits restricted data on its servers must pass a security assessment by a Google-approved independent assessor, and redo it "at least every 12 months". So when a consent screen asks to read your email, check two things:

  1. Does the screen show the vendor's real name, or a warning that Google hasn't verified the app? If you see the warning, read what "Google hasn't verified this app" means before you click through.
  2. Does it ask for full access, including deleting mail, when it only needs to send and read? On the API it doesn't have to.

For what it's worth, outr connects through the Gmail API after you sign in with Google, so you never hand it a password.

Keeping follow-ups in the same thread

You'll notice this one on day three of a campaign. A follow-up that lands as a fresh email, with its own subject and no history, reads like a stranger shouting twice. One that sits under your first email reads like a person checking in.

Gmail decides that from headers. Google's threads guide lists three conditions for adding a sent message to a thread through the API: the threadId must be set on the request, the References and In-Reply-To headers must follow the email standard (RFC 2822), and "The Subject headers must match."

In practice, the second email in a sequence carries headers like these (the IDs are made up):

Subject: Re: onboarding emails at Northwind
In-Reply-To: <CAF7x2k9qY@mail.gmail.com>
References: <CAF7x2k9qY@mail.gmail.com>

And in your prospect's inbox it shows up under the first message, like this:

Example

Subject: Re: onboarding emails at Northwind

Hi Sam,

Floating this back up in case last week ate it. Happy to send the two-line version if that is easier.

Priya

SMTP can carry the same headers, so threading works there too. The difference is that on the API your tool sends with the thread ID and checks the thread it's replying into in one place. An SMTP setup has to pair sending with a separate IMAP connection to find the original message. More moving parts, more ways for a follow-up to break off on its own.

When SMTP still makes sense

SMTP isn't wrong. It's older, simpler, and almost everything speaks it. It's a fine choice when:

  • You're writing your own script for one inbox, and an app password on an account you control is a risk you accept.
  • A tool you already rely on only supports SMTP, and you're happy to give it full mailbox access.
  • You send from a server or device on your own network. For that, Google points Workspace admins to a separate SMTP relay service at smtp-relay.gmail.com, which identifies you by IP address and lets each user relay to up to 10,000 recipients a day. It's built for printers, scanners and in-house apps, not a hosted cold email tool.

If you do use smtp.gmail.com, Google's settings are port 465 for SSL or 587 for TLS, and the same 2,000-a-day limit applies.

What we wouldn't do is run cold email across several inboxes on app passwords in 2026. It works until the day it quietly doesn't, and you find out because the replies stopped.

How to choose in five minutes

  1. If your tool offers "Sign in with Google", use it. That's the Gmail API or OAuth, with no password stored.
  2. On the consent screen, read what it asks for. Send plus read is normal for a cold email tool. Permanent delete isn't.
  3. If you see an unverified app warning, stop and find out why.
  4. Keep app passwords for the rare tool with no other option, and write down where you created them so you can revoke them later.
  5. Check that SPF, DKIM and DMARC pass for the domain you send from, whichever route you pick.

Then get back to what actually decides your reply rate: a small, clean list and an email worth answering.

Questions people ask

Is the Gmail API faster than SMTP for sending?

For cold email, speed isn't the limit, your daily volume is. Google's per-user limits are the same whether you send through the API or SMTP: 2,000 messages a day on a paid Workspace account and 500 on a trial. A sensible cold email inbox sends far below either, so a few milliseconds per message never matters.

Can I still use my Gmail password for SMTP?

No. Since March 14, 2025, Google no longer accepts plain passwords for SMTP, IMAP or POP on any Google Account. You need to connect with OAuth (Sign in with Google) or create an app password, which needs 2-Step Verification and may not be available on a work account.

Does sending through the Gmail API improve deliverability?

Google doesn't say it does, and we found no primary source that shows it. Both methods send from Google's servers as your account. Inbox placement depends on SPF, DKIM and DMARC passing, your volume, your bounce rate and how many people report you as spam.

Why does SMTP need full access to my Gmail?

Google offers only one OAuth scope for IMAP, POP and SMTP, https://mail.google.com/, which covers reading, sending and permanently deleting mail. The Gmail API has narrower scopes, such as gmail.send for sending only, so a tool on the API can ask for less.

Should I use Google's SMTP relay for cold email?

Probably not. The SMTP relay at smtp-relay.gmail.com is meant for devices and apps your organization runs, and it recognises you by IP address rather than by sign-in. A hosted cold email tool doesn't send from your IP addresses, so Sign in with Google is the simpler and safer fit.

Sources

  1. Transition from less secure apps to OAuth, Google Workspace Admin Help
  2. Sign in with app passwords, Google Account Help
  3. Gmail sending limits in Google Workspace, Google Workspace Admin Help
  4. Send email from a printer, scanner or app, Google Workspace Admin Help
  5. Set up SPF, Google Workspace Admin Help
  6. Choose Gmail API scopes, Google for Developers
  7. OAuth 2.0 mechanism for IMAP, POP and SMTP (XOAUTH2), Google for Developers
  8. Managing threads, Gmail API, Google for Developers
  9. Restricted scope verification, Google for Developers

Written by the outr team

We build outr, an AI sales team that sends from your own inboxes and drafts every reply for you to approve. Every figure in this article links to the page it comes from, listed above.

Read next

An AI sales team in your own inbox

Our AI-driven SDR researches every lead, writes every email and follows up until they answer.