Email API for Application-Driven Emails
Send transactional or bulk email effortlessly with our SMTP relay and flexible HTTP API. Your first 10,000 messages are free every month.
Easily Integrate Email into Your App
See our API Documentation with libraries for popular languages like Python, Ruby, Java, C#, PHP, and more.
Know Exactly What Happens to Every Email You Send
Get insight into the performance of your messages with advanced email analytics. Track engagement metrics like opens and clicks, use hourly data to determine the best time to send your emails, and dig into performance by device, location, and mailbox provider.
When delivery failures happen, our detailed logs make it easy to diagnose and correct email issues.
Get Better Deliverability with Less Work
Give your emails the best chance of landing in the inbox. Send from your domain with SPF, DKIM, and DMARC customization, and protect your reputation from bad actors with dedicated IPs and isolated sending domains.
To optimize your deliverability, sign up for Mailgun’s Managed Service and get tools, expertise, and dedicated, one-on-one support.
Make Inbound Emails Easier to Process
Receive your emails fully parsed and converted to UTF-8. Turn complex MIME data from incoming messages into straightforward JSON. With our powerful email parsing and routing features, inbound processing isn’t such a pain.
See how UserVoice solved their incoming email problem with Mailgun.
Trusted by Smart Software Development Teams
Email API Features
Send to your list, receive actionable data, and track engagement
Advanced Message Parsing
Intelligent Routing & Forwarding
RegEx Pattern Matching
Temporary Message Storage
Live, Searchable Logs
30-day Data Retention
Mailbox Provider Performance
Event Webhooks and API