Email platforms

Mailjet integration

A sync script you run on your own computer checks a Mailjet contact list as one bulk list and writes each contact’s result into four contact properties. A segment on ev_action picks the addresses that passed for your campaigns.

Read the full setup guideGet an API key

  • Setup guide
  • A script you download

mailjet.mjsNode 22.18 or later

Terminal
export EV_API_KEY=…  MJ_APIKEY_PUBLIC=…  MJ_APIKEY_PRIVATE=…
node mailjet.mjs --lists
node mailjet.mjs --list <list id> --dry-run
node mailjet.mjs --list <list id>

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
Teams who send campaigns from Mailjet and want the contacts that will bounce, or should not be mailed at all, marked so a segment can keep them out of a send.
You need
Node 22.18 or later, an API key of ours with Bulk lists (off by default), and your Mailjet API key and secret key from Account settings → API Key Management (Mailjet shows a secret key only once, when it is created or reset). Sending to a segment needs Mailjet’s segmentation, which its pricing lists from the Essential plan.
Costs
1 credit = 1 validated address, as with any API request. Free: unknown results, API errors, malformed addresses and test addresses on sandbox.email-validation.org.
Full guide
Read the full setup guide

Typical uses.

  • Send only to the addresses that passed

    A segment “ev_action equals send” picks the contacts to mail, with the list, for each campaign.

  • Find the ones to remove

    Each contact gets ev_status, ev_reason, ev_action and ev_checked_at. Spam traps and complainers are valid with the action remove, so trust ev_action.

  • Check new contacts daily

    Mailjet sends no event when a contact is added, so run the sync on a schedule: each run checks only contacts without a result.

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.

Read the full setup guide

  1. Download and unzip

    It is not on a marketplace: download email-validation-mailjet.zip from the guide. It holds mailjet.mjs and the licence.

  2. Find your list

    node mailjet.mjs --lists shows each contact list’s id and contact count.

  3. Dry run, then run

    node mailjet.mjs --list <list id> --dry-run counts what it would check and spends nothing. Run it again without --dry-run: it does not ask before it spends.

  4. Segment on the result

    In Mailjet, make a segment “ev_action equals send” and pick it, with the list, for your campaigns.

Good to know.

  • It writes only its four contact properties: it never deletes, excludes or unsubscribes a contact, and adds no one to a list or takes anyone off one.

  • Contacts unsubscribed from the list or excluded from campaigns are left out unless you ask for them.

  • Run the same command again after any stop and it resumes the same bulk list without paying twice (within the 30 days a list is kept). It prints ids and counts, never an address or a key.

  • --region eu checks and keeps the list in the EU, with the same key.

Connect Mailjet
in a few minutes.

Test it on our sandbox addresses for free, then on your own contacts.

Create your accountRead the full setup guide

Updated · Maintained by: Email Validation LLC