Email API

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.

Sign Up Free

Easily Integrate Email into Your App

Set up your email integration in no time, and start A/B testing, scheduling, and tracking your sends. Whether you need to send 10 emails or 10 million, our delivery infrastructure scales with you.

See our API Documentation with libraries for popular languages like Python, Ruby, Java, C#, PHP, and more.

Email Analytics

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.

Email Parsing

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.

Try Mailgun’s Email API

Sign up today and get your first 10,000 messages and 100 email validations free every month.

Sign Up Free

Sending over 10,000 messages per month?
Check out our pricing to estimate your monthly cost.

Trusted by Smart Software Development Teams

Integrate email into your app
in minutes with our API

Sign up free

Want better deliverability?
Learn more about our managed email service.