Flexible Sending

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

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.


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.

Free trial

Try Mailgun’s Email API

Sign up today and get your first 10,000 messages and 100 email validations free every month. Sending over 10,000 messages per month? Check out our pricing to estimate your monthly cost.

Sign Up Free
  • Github
  • Lyft
  • Shopify
  • Slack
  • Reddit

Integrate email into your app in minutes with our API.

What will you accomplish with 10,000 free emails and a 100 free validations every month?

Contact Us