# Flexible Email API solution

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

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

## Scale with the best email API for developers

Mailgun’s Email API makes integrating email into your applications incredibly easy with our RESTful architecture design and comprehensive documentation.

- RESTful APIs integrate email into your application seamlessly
- Built on Google with 99.99% Server Uptime
- [SOC I & II certified](https://security.mailgun.com/)
- GDPR, HIPAA, and ISO 27001 compliant

## Real-time logs and analytics in one powerful email API platform

Mailgun gives you full transparency into your email deliveries with logs and [analytics](https://www.mailgun.com/features/email-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.

> “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 Vice President of Product at Dribbble

## An Email API for seamless inbound parsing and delivery

Our email API also offers robust [email parsing and routing](https://www.mailgun.com/features/inbound-email-routing/) features, making inbound processing simple and streamlined. Avoid throws and achieve high levels of email delivery.

## Stop email spoofing before it starts

With Mailgun, companies are empowered to send their emails straight to the inbox through various email authentication protocols. Integrate authentication protocols like SPF, DKIM, and DMARC within Mailgun’s API to avoid misalignment before you even start sending and keep bad actors from impersonating your brand.

## Email API setup made simple: Get your API key and start coding

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.](https://documentation.mailgun.com/docs/mailgun/sdk/introduction)

## 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:

- Automated warmup of dedicated IP addresses and isolation of each sending domain to protect your reputation
- Batch sending of up to 1,000 personalized emails at a time
- Email delivery monitoring and optimization
- Email segmentation for simple A/B testing
- The ability to schedule email delivery

## Frequently asked questions (FAQs)

### 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](https://trust.sinch.com/?product=mailgun).

### What pricing plans does Mailgun offer?

Mailgun offers [four flexible email sending plans](https://www.mailgun.com/pricing/), each with a set monthly email allowance and overage pricing.

### How does Mailgun manage bounces, suppressions, and email deliverability feedback?

Mailgun automatically classifies and records bounce events (hard and soft), spam complaints, and unsubscribes into a Suppressions list. Once an address is added to your suppressions, Mailgun prevents further delivery attempts to protect your sending reputation. You can query or purge suppression records via the API or dashboard.

### Can I send email via SMTP with Mailgun instead of using the HTTP email API?

Yes. In addition to its RESTful Email API, Mailgun supports the standard SMTP protocol (with or without TLS). You simply point your mail client or SMTP library to Mailgun’s SMTP endpoint and authenticate using your SMTP credentials, making it compatible with virtually any email‑sending tool or library.

### Does Mailgun offer dedicated IP addresses, and how do I obtain and assign one to my domain?

Mailgun offers dedicated IPs starting on the foundation plan (and IP pools at Scale and up) so you control your sending reputation:

– **When to use**: High volume or reputation‑sensitive senders who need isolation from shared‑IP behavior
– **How to get one**: In the Control Panel’s IP Management section, click “Add Dedicated IP”
– **Assignment**: Once provisioned, you can assign the dedicated IP to any custom sending domain on your account. Mailgun also offers automated warm‑up for new IPs to build positive reputation over time

### What third‑party integrations are available with Mailgun (e.g., CRM, e‑commerce, automation tools)?

Mailgun maintains a broad [ecosystem of integrations](https://www.mailgun.com/resources/integrations/), including:

– CRM & Marketing: ActiveCampaign, HubSpot (via Zapier)
– E‑commerce: BigCommerce, Amazon Seller Central
– Productivity: Asana, Airtable
– Billing & Payments: Braintree
– Custom & No‑Code: Zapier (connect to 7,000+ apps)

## 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](https://www.mailgun.com/wp-content/uploads/2025/10/GU-MG-Security-and-Compliance.pdf) 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.
