Mailgun for email marketing: campaigns on your Mailgun account
Mailgun email marketing explained: what Mailgun offers for campaigns, its acceptable use thresholds, plan pricing, and what a campaign platform on top adds.
· 5 min read · By Reda El Kasraoui

TL;DR: Mailgun can carry email marketing: it's an API and SMTP sending service with templates, mailing lists, batch sending up to 1,000 recipients per call, tracking and analytics. What it doesn't hand you is a full campaign workflow (list consent records, suppression across providers, scheduling drops, per-offer reporting), and its acceptable use policy is strict: explicit opt-in only, a complaint threshold of 0.08%, and affiliate marketing accepted only with specific guarantees. If your program fits that policy, a campaign platform on top of your own Mailgun account gives you the workflow while Mailgun does the delivery.
Mailgun (Sinch Mailgun) is an email delivery service for developers: you send through its REST API or SMTP relay and receive events by webhook. Email marketing here means bulk messages to subscribers who opted in: newsletters, promotions and offers, as opposed to transactional email such as receipts.
What Mailgun gives you for campaigns
According to Mailgun's email marketing page and documentation:
- Templates: HTML or a drag-and-drop builder, stored with versions and filled with variables at send time.
- Batch sending: one API call with up to 1,000 recipients and recipient variables, so each person gets an individual message. The batch sending guide warns that without recipient variables every address shows in the To field.
- Mailing lists: stored lists you send to with one address.
- Tracking and events: opens, clicks and unsubscribes, plus webhooks for deliveries, failures and complaints.
- Suppressions: bounces, unsubscribes and complaints are suppressed automatically.
- US or EU region: data stays in the region of the account.
That's enough to send a newsletter from your own code. For a team running several lists, offers or senders, the gaps are the workflow around the send: who may send what, which addresses are suppressed for which advertiser, when to pause, and what each send earned.
What Mailgun's acceptable use policy requires
Read Mailgun's acceptable use policy before the first campaign. The points that matter most for marketing:
| Rule | What the policy says |
|---|---|
| Consent | Explicit, provable consent through a confirmed single or double opt-in, with an unticked checkbox |
| Lists | Bought, rented or scraped lists are prohibited |
| Unsubscribe | A clear link in every marketing email, honored without undue delay |
| Privacy | A link to your privacy policy in each email |
| Bounces | 5% or less |
| Unsubscribes | 1.4% or less (1% if unsubscribes exceed clicks) |
| Complaints | 0.08% or less |
| Blocks | Under 20% |
One clause matters for affiliate mailers in particular: the prohibited-content section says Mailgun does not work in principle with senders who promote affiliate marketing, payday loans or debt collection "unless the sender gives us sufficient and specific guarantees". If you mail affiliate offers, contact Mailgun first and keep their answer in writing. Otherwise use a provider whose policy fits your program; see multi-provider sending for how several accounts work side by side.
The 0.08% complaint threshold is also stricter than Gmail's 0.3% ceiling in the bulk sender requirements, so a stop rule well below it is worth setting.
Mailgun or another provider for affiliate offers?
If your program is affiliate offers, the honest answer is: ask Mailgun first. The policy doesn't ban affiliate marketing outright; it says Mailgun doesn't work with it "in principle" without specific guarantees, which in practice means a conversation about your list sources, consent records and complaint history before volume goes out. Some senders get that agreement, others are better served elsewhere.
Whatever the answer, don't put your whole program on one account. A suspended account stops every drop at once. Spreading traffic across a few providers you've each warmed up, each with its own authenticated domain, keeps one decision from halting the business, as long as each account carries the mail its policy accepts. That's capacity planning, not filter evasion: the same list never goes to a second provider to get around a block. Amazon SES, for example, has its own rules and review process, described in our Amazon SES bulk email guide.
What Mailgun costs
Mailgun's pricing page lists these Send plans (published 1 Dec 2026, USD):
| Plan | Monthly | Included | Notes |
|---|---|---|---|
| Free | $0 | 100 emails a day | 1 custom sending domain |
| Basic | from $15 | 10,000 emails | Overage from $1.80 per 1,000 |
| Foundation | from $35 | 50,000 emails | 1,000 sending domains, template builder |
| Scale | from $90 | 100,000 emails | Dedicated IP pools, send time optimization |
Dedicated IPs are available from 50,000 emails a month and included at 100,000+. Check the page for current numbers.
What a campaign platform adds on top
Inspiremail sends through your own Mailgun account; Mailgun keeps doing the delivery and you keep paying Mailgun directly. On top of it you get:
- Lists with consent records and an organization-wide suppression list (emails, domains, SHA-256 hashes) applied before every send, including advertiser lists from Optizmo per offer.
- Drops scheduled from Deploy, with sending pools that can mix Mailgun with Amazon SES, SendGrid, Postmark, SparkPost or Brevo.
- Your own tracking domain per sender: Mailgun's tracking is switched off and messages go out as raw MIME, so List-Unsubscribe and your headers arrive untouched (why tracking domains matter).
- A stop rule: a drop pauses itself when bounces pass 5% or complaints pass 0.1% once 500 messages are delivered; both thresholds can be changed per drop, which helps you stay under Mailgun's limits.
- Warmup caps for new domains, a live monitor and reports per list, sender and offer.
Connecting takes a private API key, the region and one webhook per event type; the steps are in the Mailgun setup guide, and the overview is on the Mailgun integration page.
Before your first Mailgun campaign
- Verify your own sending domain; the sandbox domain only delivers to authorized recipients.
- Publish SPF, DKIM and DMARC for it (SPF, DKIM and DMARC explained).
- Confirm your list was collected with an opt-in you can prove, and import past unsubscribes and bounces as suppression.
- Start with your most engaged subscribers and ramp volume on a new domain or IP over days, not hours.
- Send a seed test, then watch bounces and complaints during the first drops.
How we checked this guide
We read Mailgun's acceptable use policy, pricing page and documentation linked above on 1 December 2026, and checked the Inspiremail behavior against the product. Prices and thresholds change; Mailgun's own pages are authoritative. For the wider workflow, see the affiliate email marketing guide. If something here no longer matches, contact us and we'll correct it, as our editorial policy describes.
Frequently asked questions
Can I use Mailgun for marketing emails?
Yes, if every recipient gave explicit, provable consent. Mailgun's acceptable use policy requires a confirmed opt-in, an unsubscribe link in every marketing email, a link to your privacy policy and sending metrics within its thresholds, and it forbids bought, rented or scraped lists.
Does Mailgun allow affiliate marketing?
Mailgun's acceptable use policy lists affiliate marketing among the activities it does not work with in principle, unless the sender gives sufficient and specific guarantees at Mailgun's discretion. If you mail affiliate offers, talk to Mailgun before you send and keep written confirmation of what was agreed.
What bounce and complaint rates does Mailgun accept?
The policy sets bounces at 5% or less, unsubscribes at 1.4% or less (1% if unsubscribes exceed clicks), spam complaints at 0.08% or less and blocks under 20%. Mailgun may update these thresholds without notice.
How many recipients can one Mailgun API call have?
Up to 1,000 recipients per batch, using recipient variables so each person gets an individual message. Larger lists are sent as several batches, or through a Mailgun mailing list.
Does Inspiremail use Mailgun's own click tracking?
No. Inspiremail sends each message to Mailgun as raw MIME with Mailgun's tracking switched off; clicks, opens and unsubscribes run on your own tracking domain, and Mailgun's signed webhooks bring deliveries, failures and complaints back.
- Mailgun email marketing
- mailgun
- mailgun bulk email
- batch sending
- acceptable use policy