Overview
Unosend offers a modern, developer-friendly alternative to Mailgun with transparent pricing and a simpler API surface. Why switch:- Predictable pricing — flat monthly plans vs Mailgun’s per-email pricing
- Modern API — JSON-first design vs Mailgun’s form-data approach
- Built-in features — broadcasts, SMS, WhatsApp, and validation included
- No vendor lock-in — simple REST API compatible with any language
Migration Steps
1. Create Your Unosend Account
- Sign up at unosend.co/signup
- Add and verify your sending domain
- Generate an API key
2. Update Environment Variables
3. Update Your Code
- Node.js
- Python
- cURL
Before (Mailgun):After (Unosend):
4. Update DNS Records
Remove Mailgun’s DNS records and add Unosend’s:| Type | Name | Value |
|---|---|---|
| TXT | unosend._domainkey | Your DKIM public key |
| MX | send | 10 mail.unosend.co |
| TXT | send | v=spf1 include:_spf.unosend.co ~all |
Key Differences
| Feature | Mailgun | Unosend |
|---|---|---|
| Auth | Basic Auth (api:key-xxx) | Bearer token (Bearer un_xxx) |
| Content type | multipart/form-data | application/json |
| Domain in URL | Required (/v3/{domain}/messages) | Not required |
| Webhooks | Signature-verified | Bearer token verified |
| Templates | Handlebars | Mustache variables |
| Logs | 3-day retention (free) | Plan-based (3–30 days) |
Pricing Comparison
| Emails/Month | Mailgun | Unosend | Savings |
|---|---|---|---|
| 50,000 | $35/mo (Foundation) | $20/mo | 43% |
| 100,000 | $75/mo | $50/mo | 33% |
| 500,000 | $350/mo | $340/mo | 3% |
| 1,000,000 | $700/mo | $600/mo | 14% |
Quick Start Guide
Get sending in under 5 minutes