Effortless email sending
Mailgun’s Email API makes integrating email into your applications incredibly easy with our RESTful architecture design and comprehensive documentation.
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.
“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.”
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.
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.
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.
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.
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.
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.