Back to main menu

Effortless email sending

Free Email API solution

Send emails from your application and automatically trigger transactional emails with the Mailgun email API.

Illustration showing API code for email sending.

Over 150,000 companies are building great apps and email programs with Mailgun.

Microsoft Logo
Lyft Logo
Etsy logo.
Gainsight logo.
Vox Media logo
Substack logo
Programming language icons

Scale with the best email API for developers

Mailgun’s APIs make integrating email into your existing applications incredibly easy with our RESTful API, SMTP relays, and comprehensive documentation.

  • Badge Check

    RESTful APIs integrate email into your application seamlessly

  • Badge Check

    Built on Google with 99.99% Server Uptime

  • Badge Check

    SOC I & II certified

  • Badge Check

    GDPR, HIPAA, and ISO 27001 compliant

Full transparency into your emails

Mailgun gives you full transparency into your email deliveries with logs and analytics. You can track message performance based on email service providers, device type, and location. This means you can easily evaluate open and click-through rates, assess the importance of designing for mobile devices, and get a higher return the next time you send to your email list. If a delivery failure occurs, we deliver detailed log feedback to diagnose the problem quickly. In addition to providing searchable, real-time logs of event data, you can also make sure you have a valid email address from the start by integrating Mailgun’s email validation API into your web forms.

Results for an email verification check.

Dribbble logo

"For us, at the volume we're sending – every fraction of a percentage means a potential customer, and as a community of designers, it's our job to create meaningful touchpoints. High deliverability ensures that our messages and our reach are seen; any improvement in our email program has a huge effect on our business."

Michael Sacca
115F513A-17CF-463E-999E-489BC063244D

Michael Sacca

Vice President of Product at Dribbble

Illustration of an icon representing integration.

Inbound email parsing and routing

Our email API also offers robust email parsing and routing features, making inbound processing simple and streamlined. Avoid throws and achieve high levels of email delivery.

Enable your brand’s legitimacy

With Mailgun, companies are empowered to send their emails straight to the inbox through various email authentication protocols. Protect your sender reputation by sending with SPF, DKIM, and DMARC protocols and keep bad actors from impersonating your brand.

Illustration showing an inbox being filtered by SPF, DKIM, and DMARC.
Mailgun API.

Sending email messages with your API key

When you’re ready to get started using Mailgun’s email delivery service, you’ll be able to find a personalized API key in your user dashboard. Mailgun has published client libraries for a variety of programming languages, including Python, Ruby, Java, and C. View code samples for each language.

An email service designed for high performance

Mailgun’s free email API gives you the ability to send emails at scale. Use your API key to take the stress out of email marketing, with features such as:

  • Badge Check

    Automated warmup of dedicated IP addresses and isolation of each sending domain to protect your reputation

  • Badge Check

    Batch sending of up to 1,000 personalized emails at a time

  • Badge Check

    Email delivery monitoring and optimization

  • Badge Check

    Email segmentation for simple A/B testing

  • Badge Check

    The ability to schedule email delivery

Our RESTful API makes it simple to use standard HTTP operations, providing outputs in flexible data formats, including application/JSON. If you prefer a different configuration, you can also send emails directly through SMTP servers.

A graphic illustration showing analytics on a computer screen.

Frequently Asked Questions (FAQs)

Does Mailgun support both transactional and marketing emails?

Yes, Mailgun makes it easy to reliably send high volumes of email -- both transactional and marketing -- at scale.  

Is Mailgun email API secure?

We take security and privacy seriously. Mailgun is both SOC I & II compliant as well as HIPAA compliant.  For a full list of compliance certificates, as well as our request form for compliance proof - please refer to our security portal. 

Does Mailgun have a visual email template builder?

Yes, Mailgun has a visual email template editor available through the Mailgun App. 

How does the email API work?

Built developer-first, Mailgun makes integrating our world-class cloud sending infrastructure as seamless as possible through our RESTful email API, comprehensive documentation, and maintained SDKs. 

Review our Mailgun Email API’s Documentation and API Libraries to interact with Mailgun using popular programming languages like Python, Ruby, Java, or C#.  

How do I get started with Mailgun Send?

Sign up today to try our self-service email API. Send 100 emails/day free, with packages starting at just $15/month. Looking to send more than 250MM emails/month? Talk with sales to schedule a demo. 

Mailgun Email Security Capabilities

We take security seriously to ensure the integrity of our platform and the protection of our customers' data. Download the Mailgun guide to email security and compliance for more information.

Sender Authentication

Mailgun supports DMARC, DKIM, and SPF for email authentication, reducing the risk of spoofing.

Webhook Security

Protects your webhooks with signature validation to ensure secure, tamper-free requests.

Access Management

Secure access with Two-Factor Authentication (2FA), IP access management, and API keys to safeguard sensitive data.

Single Sign-On (SSO)

Streamlined login with SSO for enhanced security and convenience.

Data Encryption

We utilize AES-256 encryption-at-rest for all customer data.

Acceptable Use Policy (AUP)

Mailgun protects senders' reputations by enforcing guidelines for bounce rates, spam complaints, list sourcing, and prohibited content.

See what you can accomplish with the world's best email delivery platform and email API with Mailgun

It's easy to get started. And it's free. 
CTA icon