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
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-ToandReferencesare 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
| Setting | Value |
|---|---|
| Host | smtp.mconfirm.com |
| Port | 587 with STARTTLS (recommended), or 465 with TLS from the start |
| Authentication | Required — PLAIN or LOGIN |
| Username | Your credential's username, like mc_xxxxxxxxxxxxxxxx |
| Password | Shown once, when the credential is created or rotated |
| From | The 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>',
});use PHPMailer\PHPMailer\PHPMailer;
$mail = new PHPMailer(true);
$mail->isSMTP();
$mail->Host = 'smtp.mconfirm.com';
$mail->Port = 587;
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
$mail->SMTPAuth = true;
$mail->Username = 'mc_xxxxxxxxxxxxxxxx';
$mail->Password = getenv('MCONFIRM_SMTP_PASSWORD');
$mail->setFrom('[email protected]', 'Hannah Becker'); // the credential's Gmail account
$mail->addAddress('[email protected]');
$mail->isHTML(true);
$mail->Subject = 'Q1 proposal';
$mail->Body = '<p>The final numbers are <a href="https://acme.com/q1">here</a>.</p>';
$mail->send();import os, smtplib
from email.message import EmailMessage
msg = EmailMessage()
msg["From"] = "Hannah Becker <[email protected]>" # the credential's Gmail account
msg["To"] = "[email protected], [email protected]"
msg["Subject"] = "Q1 proposal"
msg.set_content("The final numbers are at https://acme.com/q1")
msg.add_alternative('<p>The final numbers are <a href="https://acme.com/q1">here</a>.</p>', subtype="html")
with smtplib.SMTP("smtp.mconfirm.com", 587) as s:
s.starttls()
s.login("mc_xxxxxxxxxxxxxxxx", os.environ["MCONFIRM_SMTP_PASSWORD"])
s.send_message(msg)WP Mail SMTP → Mailer: "Other SMTP" (FluentSMTP → "Other SMTP" is the same)
SMTP Host smtp.mconfirm.com
Encryption TLS (STARTTLS)
SMTP Port 587
Authentication On
SMTP Username mc_xxxxxxxxxxxxxxxx
SMTP Password the password shown when you created the credential
From Email [email protected] ← the Gmail account the credential belongs to
Force From Email Oncat > message.eml <<'MAIL'
From: Hannah Becker <[email protected]>
To: [email protected]
Subject: Q1 proposal
Content-Type: text/html; charset=utf-8
<p>The final numbers are <a href="https://acme.com/q1">here</a>.</p>
MAIL
curl --ssl-reqd smtp://smtp.mconfirm.com:587 \
--user "mc_xxxxxxxxxxxxxxxx:$MCONFIRM_SMTP_PASSWORD" \
--mail-from [email protected] \
--mail-rcpt [email protected] \
--upload-file message.emlFor 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
| Limit | Value |
|---|---|
| Wrong passwords | 5 in a row lock the credential for 15 minutes. Rotating it unlocks it. |
| Failed logins from one IP address | 20 in 10 minutes block that address for a while. |
| Messages per credential | 30 a minute and 2,000 a day. |
| Recipients per message | 100 (To, Cc and Bcc together). |
| Message size | 25 MB, attachments included. |
SMTP error codes
| Code | Meaning | What to do |
|---|---|---|
535 | Authentication failed | Wrong username or password — or the credential is locked after 5 wrong passwords (15 minutes; rotating it unlocks it). |
553 | Sender not allowed | The From address (envelope or header) is not the Gmail account the credential belongs to. |
554 | Paid plan needed | The 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. |
451 | Rate limit — try again later | More than 30 messages a minute or 2,000 a day on this credential. A temporary error: well-behaved clients retry later. |
452 | Too many recipients | More than 100 recipients (To, Cc and Bcc together) in one message. |
552 | Message too large | The 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].