Email platforms
SMTP2GO email validation integration
A module you copy into your own server checks the to, cc and bcc of each SMTP2GO send and sends the message without the addresses that cannot receive mail. Everything else in the message goes to SMTP2GO as you wrote it.
Read the full setup guideGet an API key
- Setup guide
- A module you download
import { createSmtp2goGuard } from './email-validation-smtp2go.mjs'; // .ts under Node 22.18+, Deno or Bun
const guard = createSmtp2goGuard({ apiKey: process.env.EV_API_KEY, smtp2go: { apiKey: process.env.SMTP2GO_API_KEY } });
const { accepted, precheck } = await guard.send(message);At a glance.
- Status
- Setup guide. Not listed on a marketplace yet: you set it up yourself in a few steps, below and in the full guide.
- For
- Developers who send transactional mail with SMTP2GO and want sign-up, receipt and password mail kept away from addresses that would bounce and hurt their sending reputation.
- You need
- An API key of ours with Validate addresses (on by default) and an SMTP2GO API key allowed /email/send, in a server with fetch: Node 22 or later, Bun, Deno or Cloudflare Workers.
- Costs
- 1 credit = 1 validated address, as with any API request. Free: unknown results, API errors, malformed addresses, test addresses on sandbox.email-validation.org, addresses on reserved domains such as example.com and, in a bulk list, repeats of an address (charged once).
- Full guide
- Read the full setup guide
Typical uses.
Before each send
guard.send checks every distinct address once and sends the message without the blocked recipients; a message whose every to is blocked is not sent.
With your own SMTP2GO client
checkRecipients does the check alone and answers the message to send; check does one address, for a sign-up form or a MIME message you build.
Suppress invalid addresses, if you ask
Off by default. With suppress on, a recipient blocked as a definite invalid is also added to your SMTP2GO suppressions, so SMTP2GO skips it from then on.
Set it up. 4 steps.
The short version of the full setup guide, which stays the reference when a step does not match what you see.
Download and unzip
It is not on a registry: download email-validation-smtp2go.zip from the guide. It holds the module as TypeScript and as JavaScript, and the licence.
Copy the module
Put email-validation-smtp2go.ts (or .mjs) into your server’s code and make the guard once per process.
Try it without sending
Check no_mailbox@sandbox.email-validation.org with checkRecipients and log the answer: its recipient is blocked as invalid and nothing is left to send. Never send to that address through SMTP2GO.
Send through the guard
Call guard.send where you called SMTP2GO’s POST /v3/email/send, or send the checked message with your own client.
Good to know.
By default only a definite invalid is set aside; block adds disposable, catch_all or unknown. Everything else is sent as before.
It fails open: no key, a timeout, a network error or any error answer keeps the recipient, so a problem on our side never stops your mail.
Each check uses one credit; a remembered answer costs nothing, and unknown results, malformed and sandbox addresses are free.
SMTP2GO answers 200 even when some recipients failed: read failed and failures in the result.
Connect SMTP2GO.
Test it on our sandbox addresses for free, then on your own contacts.
Updated · Maintained by: Email Validation LLC