Skip to content

Developers

SMTP relay

Send tracked email from your own apps — a CRM, a website form, WordPress, a script — over plain SMTP. Each message goes out through your own Gmail account, tracked person by person.

Available soon

The SMTP relay is launching: credentials can be created now, and smtp.mconfirm.com is being switched on shortly. Until then, connections to it may not succeed.

How it works

MConfirm doesn't deliver mail itself. Your app hands a message to smtp.mconfirm.com; MConfirm adds tracking and sends it through the connected Gmail account it belongs to, exactly like an email you send from the dashboard:

  • Tracked per person — each recipient gets their own copy with its own pixel and tracked links, so you see who opened and clicked. See Individual tracking.
  • Bcc stays blind — Bcc recipients get a private copy with no Bcc line.
  • Attachments are carried through to every copy.
  • One clean copy in Gmail Sent, without tracking, so your Sent folder looks normal.
  • Replies thread normally — In-Reply-To and References are kept.
  • Notifications, the Live feed, labels and reports work as for any tracked email.

Every message counts toward that Gmail account's monthly tracked emails (once per message, whatever the number of recipients). Over the limit it still sends — untracked. The relay is for paid plans only — accounts on the free plan can't create credentials or send through it; see Billing & plans.

Connection settings

SettingValue
Hostsmtp.mconfirm.com
Port587 with STARTTLS (recommended), or 465 with TLS from the start
AuthenticationRequired — PLAIN or LOGIN
UsernameYour credential's username, like mc_xxxxxxxxxxxxxxxx
PasswordShown once, when the credential is created or rotated
FromThe Gmail account the credential belongs to — both the envelope sender (MAIL FROM) and the From: header. Anything else is refused with 553.

Credentials

In the dashboard open Account → SMTP relay and create a credential for one of your Gmail accounts. Give it a name (for example “WordPress” or “CRM”) so you know where it is used. The password is shown once — copy it into your app straight away.

  • Up to 10 credentials per Gmail account — one per app is a good habit.
  • Each one shows its name, username and when it was last used.
  • New password rotates it: you get a new password, and the old one stops working at once.
  • Revoke deletes it; anything using it is refused from then on.

Setup examples

import nodemailer from "nodemailer";

const transport = nodemailer.createTransport({
  host: "smtp.mconfirm.com",
  port: 587,
  secure: false,        // STARTTLS on 587
  requireTLS: true,
  auth: { user: "mc_xxxxxxxxxxxxxxxx", pass: process.env.MCONFIRM_SMTP_PASSWORD },
});

await transport.sendMail({
  from: "Hannah Becker <[email protected]>",   // the Gmail account the credential belongs to
  to: ["[email protected]", "[email protected]"],
  subject: "Q1 proposal",
  html: '<p>The final numbers are <a href="https://acme.com/q1">here</a>.</p>',
});

For port 465 use implicit TLS instead: in Nodemailer port: 465, secure: true; in Python smtplib.SMTP_SSL("smtp.mconfirm.com", 465); in PHPMailer SMTPS with port 465.

Limits & protection

LimitValue
Wrong passwords5 in a row lock the credential for 15 minutes. Rotating it unlocks it.
Failed logins from one IP address20 in 10 minutes block that address for a while.
Messages per credential30 a minute and 2,000 a day.
Recipients per message100 (To, Cc and Bcc together).
Message size25 MB, attachments included.
Gmail's own sending limits apply too — about 500 recipients a day for a personal Gmail account and 2,000 for Google Workspace. Per-person tracking sends one copy per recipient, so every recipient counts toward Gmail's limit. The relay is for the email your apps send on your behalf, not for bulk campaigns.

SMTP error codes

CodeMeaningWhat to do
535Authentication failedWrong username or password — or the credential is locked after 5 wrong passwords (15 minutes; rotating it unlocks it).
553Sender not allowedThe From address (envelope or header) is not the Gmail account the credential belongs to.
554Paid plan neededThe Gmail account is on the free plan (“needs a paid MConfirm plan to use the SMTP relay”). The relay is for paid plans only — upgrade the account on the Billing page.
451Rate limit — try again laterMore than 30 messages a minute or 2,000 a day on this credential. A temporary error: well-behaved clients retry later.
452Too many recipientsMore than 100 recipients (To, Cc and Bcc together) in one message.
552Message too largeThe message, with attachments, is over 25 MB.

Manage credentials from the API or MCP

The same credentials are available in the REST API — GET/POST /api/v1/smtp-credentials, POST /api/v1/smtp-credentials/{id} to rotate, DELETE to revoke — and as the MCP tools list_smtp_credentials, create_smtp_credential, rotate_smtp_credential and revoke_smtp_credential.

curl -X POST https://app.mconfirm.com/api/v1/smtp-credentials \
  -H "Authorization: Bearer $MCONFIRM_API_KEY" -H "Content-Type: application/json" \
  -d '{"account": "[email protected]", "name": "WordPress"}'

Troubleshooting

  • 535 on a password that worked yesterday — someone chose New password, or the credential was revoked or locked. Rotate it and update your app.
  • 553 — set your app's From address (and, in WordPress, Force From Email) to the credential's Gmail account.
  • Sent, but no ticks or opens — the account may be over its monthly limit (it sends untracked). See Troubleshooting.
  • Gmail refuses after many messages — Gmail's daily limit was reached; it resets after 24 hours.

Still stuck? See Troubleshooting or write to [email protected].