![Programming language icons](https://images.ctfassets.net/y6oq7udscnj8/50vxbNt1AAJNNPBLEYAHdH/94df2a0f48ddb1336fadd8e8dba18573/EN-MG-Integrations.png?w=1024&h=624&q=50&fm=png)
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.
RESTful APIs integrate email into your application seamlessly
Built on Google with 99.99% Server Uptime
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.](https://images.ctfassets.net/y6oq7udscnj8/3jyPAOzjOOWh3V0ONgnc00/1d66ae5d5b9a54ad2d739367ba4e4205/EN-MG-Verification-Result.png?w=1024&h=403&q=50&fm=png)
![Dribbble logo](https://images.ctfassets.net/y6oq7udscnj8/4iHs5uPye3nc2c2KNUrygg/d1a791be86f0581d67e412c7e55b56df/Logo-Dribble.png?w=672&h=56&q=50&fm=png)
"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](https://images.ctfassets.net/y6oq7udscnj8/3wmegPWO1kfAOuVKLkvHDO/95e4a1b5310b571dfc7bb74bc16d2046/Michael-Sacca-Quote.png?w=300&h=300&q=50&fm=png)
Michael Sacca
Vice President of Product at Dribbble
![Illustration of an icon representing integration.](https://images.ctfassets.net/y6oq7udscnj8/6jpnwYL2C3YVnTgQeuhMk3/6a709dfee9cf924c650b73e5547ea104/EN-MG-Integrations.png?w=1024&h=494&q=50&fm=png)
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.](https://images.ctfassets.net/y6oq7udscnj8/rmLgbMj3tcKI8d25alZvQ/8f083594053243b95b2b66891f1b0c4a/EN-MG-Inbox.png?w=1024&h=513&q=50&fm=png)
![Mailgun API.](https://images.ctfassets.net/y6oq7udscnj8/6dGSPDWCh2N0PHym1gVfwk/5feb6679b735d7a747ca5f613baf7bea/EN-MG-Message.png?w=1024&h=482&q=50&fm=png)
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:
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
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.](https://images.ctfassets.net/y6oq7udscnj8/6CdHhZdgPsmx0iWOnORePl/fe7a1da6ae90b50d9487098a5ffb45f5/EN-MG-Computer-Graph.png?w=1024&h=628&q=50&fm=png)
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.