Go off grid. Send up to 100 emails/day with Mailgun’s free plan.

Effortless email sending

Flexible 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.
Programming language icons

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
  • GDPR, HIPAA, and ISO 27001 compliant
Results for an email verification check.

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

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.

Illustration of an icon representing integration.

An Email API for seamless inbound parsing and delivery

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.

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

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.

Mailgun API.

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.

A graphic illustration showing analytics on a computer screen.

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:

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.

  • 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
Send up to 100 emails/day free with Mailgun. It’s easy to get started today.

Frequently asked questions (FAQs)

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.

Mailgun offers four flexible email sending plans, each with a set monthly email allowance and overage pricing.

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 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.

Additionally, Mailgun provides real‑time event logs and webhooks to stream bounce and delivery data to your systems for monitoring and automated handling.

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.

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

Mailgun maintains a broad ecosystem of 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)

You can browse and install these directly from Mailgun’s Integrations page, or leverage Zapier to build custom workflows without code.

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.

Send out an email blast today

Standing out from competitors requires more than a lengthy email list and clever email campaigns. You need an email marketing tool that can help you land in people’s inboxes and stay in constant contact with customers.