dahsboard
console
additional-menu

The Email Service for Developers

for developers and businesses

Powerful APIs that enable you to send, receive and track email effortlessly

Try Mailgun NowplaySee the demo

10,000 emails free every month

IN GOOD COMPANY

Trusted by 150,000+ businesses

Get your message to the right person at the right time with global infrastructure and industry expertise you can rely on.
  • [object Object]

    Built for developers

    We build everything API first with a focus on simplicity and compliance to standards.

    Read the Docs
  • [object Object]

    Engineered for reliability

    We’re serious about our 99.99% uptime SLA, and we’ve got the track record to prove it.

    Check the Status Page
  • [object Object]

    Prepared for questions

    Help is here when you need it with free 24/7/365 support for all customers. You’ll feel the love.

    Visit the Help Center
deliver

Powerful sending infrastructure

Easy SMTP integration and a simple, RESTful API abstracts away the messy details of sending transactional or bulk email. Scale quickly, whether you need to send 10 or 10 million emails.
Email API Features
verify

Fast, accurate email validation

Know exactly who you should (and shouldn’t) send to. Integrate our real-time email validation API to protect your web forms or drag and drop your contact list to quickly weed out bad emails.
Email Validation Features
DELIVERABILITY SERVICES

Managed email delivery for high volume senders

Sending millions of emails a month requires an extra level of diligence to achieve and maintain optimal deliverability and performance. Our experts help you get more emails delivered, with a strategy customized to your needs.
Learn More About Expert Services
DEPLOY YOUR MESSAGE

Send an email with a few lines of code

Let's send your first email. Grab the code below in your preferred language and paste it into your terminal.
  • cURL
  • Python
  • Java
  • Ruby
  • PHP
  • C#
  • Node.js
1 # Try our API. Copy & run this in your terminal.
2
3
4 curl -s --user 'api:ENTER_API_KEY_HERE' \
5 https://api.mailgun.net/v3/samples.mailgun.org/messages \
6 -F from='Excited User <excited@samples.mailgun.org>' \
7 -F to=‘Meow Gun <meow.gun@mailgun.com>’ \
8 -F subject='Hello Meow Gun’ \
9 -F template='action' \
10 -F h:X-Mailgun-Variables='{"test": "test"}'
11
12
13
14 # Send an email using your Active Template with the above snippet
15 # You can see a record of this email in your logs:
16 # https://app.mailgun.com/app/logs.
17
18
19
20
21
22
23
24
25
26

Fast setup, easy integration

Get up and running today. We have a robust set of APIs and comprehensive documentation so you can spend less time adding email into your app and more time building cool stuff. Here’s what needs to get done:
  • 1

    Activate your account

    After you sign up, check your email, click a link, and you’re done.

  • 2

    Set up your domain name

    Add a couple DNS records so we know you own the domain you claim to be sending emails from.

  • 3

    Start sending

    Deploy the code wherever email fits into your app or plug your SMTP credentials into a tool of your choice.

Full endpoint documentation

Our API reference includes code samples in your favorite language or framework.
useful features

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.
  • Intelligent inbound routing

    Automatically parse incoming emails for easy-to-digest structured data.

  • Advanced email analytics

    Gather actionable insights so every message you send performs better than the last.

  • Responsive email templates

    Streamline collaborating with other teams and version control with our templates feature.

#1 in transactional email

Developers and product teams love using Mailgun to communicate with their users

Based on real customer reviews, G2 Crowd named us the #1 transactional email software. Learn how our customers achieved a 1350% increase in sending speed, 817% increase in unique click rate, and other great results.
Read Customer Stories
    avatar
    avatar
    avatar
    avatar
    avatar
    avatar
    avatar
    avatar
    SIGN UP

    It’s easy to get started. And it’s free.

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