Sendly vs Mailgun
Mailgun is an email API with deliverability tooling. Sendly adds campaigns, workflows and inbound mail, and speaks its messages API so mailgun.js keeps working.
Last updated 2026-11-11 · Verified 2026-11-11 by the Sendly team
The short version
Mailgun is an email API with a deliverability toolkit around it — validation, routing, logs. Teams that chose it usually did so because they wanted the API first and the dashboard second.
Sendly is built the same way round: everything the dashboard does is in a published REST contract, and both official SDKs are generated from it. What it adds is the half most transactional providers leave to a second vendor — marketing campaigns, a visual workflow builder, dynamic segments, and mailboxes that receive real mail on your domain.
What it does not add is a validation product or a separate inbound routing DSL. If those are load-bearing for you, check that against the list below before you plan anything.
mailgun.js keeps working, with a URL override
Sendly speaks Mailgun's transactional-send dialect on a dedicated endpoint at /api/compat/mailgun. Keep the Mailgun SDK you already run, point it at Sendly, and swap the key. There is no rewrite and no second client library.
The endpoint is a translator, not a side door. It parses the vendor request shape, maps it onto Sendly's native send, and runs it through the same pipeline your native API calls use — so verified-domain checks, sending limits, suppression and billing all still apply.
Where a dialect can express something Sendly does not support in this phase, the endpoint returns a clean error in that vendor's own error shape rather than dropping the field silently. Your existing error handling fires exactly as it would have.
Sendly implements Mailgun's POST /v3/<domain>/messages. Authentication is Mailgun's own HTTP Basic style, where the username is the literal string api and the password is your Sendly secret key, so the SDK's client options are the only thing that changes.
import formData from "form-data";
import Mailgun from "mailgun.js";
const mailgun = new Mailgun(formData);
const mg = mailgun.client({
username: "api",
key: process.env.SENDLY_API_KEY,
url: "https://api.sendly.now/api/compat/mailgun",
});
// unchanged from here down
await mg.messages.create("yourdomain.com", {
from: "you@yourdomain.com",
to: "customer@example.com",
subject: "Your receipt",
html: "<p>Thanks for your order.</p>",
});Two gotchas worth reading before you switch a production sender
- The domain in the URL path must match the domain of your from address. A mismatch is a 400 in Mailgun's error shape, not a best-effort send.
- Mailgun options past o:tag — scheduled delivery via o:deliverytime, tracking toggles, stored templates — are not applied. Unlike the Resend and SendGrid dialects, which reject what they cannot map, the Mailgun dialect honours the fields in the supported list and ignores the rest. If your sends lean on those options, that is a behaviour change to test for, not a footnote.
Mailgun publishes no official Python SDK, so Python senders either call the compat endpoint over plain multipart HTTP or use the Sendly Python SDK directly — for a Python codebase, moving to the native SDK is usually less work than preserving the vendor shape.
What Sendly adds around the send
The send path is covered above. These are the parts of Sendly a Mailgun sender would otherwise buy from a second vendor or build around the messages endpoint:
| Area | In Sendly |
|---|---|
| Campaigns | One-off sends to a list or a segment from the dashboard, with scheduling, pause and resume, so marketing mail no longer needs a script wrapped around the messages call. |
| Workflows | Automated sequences built visually, branching on contact fields and tracked events, with a log of every step each contact took. |
| Deliverability | Guided DNS setup that can publish the SPF, DKIM and DMARC records and then keeps checking them, with bounces, complaints and suppression handled in the send path. |
| Inbound | A mailbox model rather than routes: real mailboxes over IMAP and SMTP, also projected into the API for your code to read. |
| Events | Delivery and engagement events you can query, plus signed webhooks with retries for the ones you subscribe to. |
| Self-hosting | If you would rather operate it yourself, the Docker deployment is written up in the docs. |
Putting a Mailgun volume on Sendly's curve
Sendly prices one thing, emails sent, on a curve that gets cheaper per thousand as volume rises, and inbound mail draws on the same allowance rather than a separate line. Take last month's send count from your logs and read it against the table.
| Plan | Price | Includes |
|---|---|---|
| Free | $0 / month · forever | 5,000 emails / month · Transactional, campaigns & workflows · Full REST API, SDKs & webhooks · Small "Sent with Sendly" footer on sent email |
| Pay as you go | $1.00 / 1,000 emails | $1.00 per 1,000 emails up to 50,000 · $0.70 per 1,000 above 50,000 · $0.50 per 1,000 above 250,000 · "Sent with Sendly" footer removed · Set your own limit per category · Billed in your own currency |
| Custom | Let's talk tailored to your volume | Everything in Pay as you go · Custom sending limits · Higher daily throughput · Direct support from the team |
For a bill worked out at a given volume rather than read off a curve, see the pricing page.
What to find out on Mailgun's side
Mailgun's prices and limits are theirs to state, and any figure written here would date. These are the questions that decide whether a move pays off:
- What does the bill look like at your actual monthly volume, and at ten times it? Flat plans and metered curves cross over somewhere; find where.
- Are transactional sends and marketing sends billed and rate-limited from the same allowance, or two?
- Is there an API for everything the dashboard can do, and is the contract published?
- Do you depend on address validation? Sendly has no equivalent product, so that piece stays where it is or goes to another vendor.
- Are inbound routes forwarding mail into your application? Map each one to a mailbox and an API read before you change any MX record.
Questions people ask
- Does Sendly do email address validation?
- Not as a standalone product. Sendly maintains a suppression list, handles bounces and complaints, and will stop you mailing an address that asked you to stop — but there is no pre-send verification API to check whether an address exists. If you buy Mailgun for validation specifically, that part does not have an equivalent here.
- Can I receive mail on Sendly the way Mailgun routes handle inbound?
- Sendly gives you real mailboxes on your own domain, reachable over IMAP and SMTP, and projects the messages into the API so your code can read them. It is a mailbox model rather than a routing-rule model: there is no expression language that forwards or posts a matching message onward. Read the receiving-emails guide before assuming a route maps across.
- Will my o:tag values survive?
- They map onto Sendly tags, sanitized. It is a partial mapping rather than an identity, so once you have moved, treat the tag values Sendly reports as the source of truth rather than assuming byte equality with what you sent.
- What does a bad key look like?
- A 401 with Mailgun's bare { message } error body, so mailgun.js raises the error your existing handling already catches and error.status and error.details read the way they do today.
Ran your SDK against the compat endpoint and got an answer this page did not predict? Send the request, without the key, and the response to support@sendly.now and we will trace it through the dialect. Field-by-field mapping is in the documentation.