Build email verification directly into web forms with Mailgun’s API
Mailgun’s powerful email validation tool helps you maintain good list hygiene so you can focus on what matters: the messages you’re sending. Our email validation API integrates directly with your web forms in real-time. This ensures that each subscriber on your mailing list has a valid email account before you send your message.
Grammar, spelling, and email provider verification happen simultaneously with back-end email server verification like MX record and A record lookups, SMTP analysis, DNS lookups, and parsing email addresses into local parts and domains – all with a typical API response time under 500 ms.
And if your developers want to integrate additional features into the API, Mailgun offers an open-source library for optimizing the email validator for your own use case.


The industry’s fastest email validation tool
Maximize efficiency and drive revenue
One bad email address can damage your email program - multiply that by tens, hundreds, or thousands and you will see a drop in inbox placement, engagement, and overall email ROI (maybe even land on a blocklist).
Integrate the industry’s fastest email validation API directly into your platform to systematically remove invalid and high-risk email addresses in real time.
Protect your sender reputation
Remove disposable addresses and minimize risk
Bad actors are working tirelessly to find new ways to manipulate your systems and create new (illegal) opportunities for themselves. And now that disposable email addresses are widely available, it makes organic list building that much harder for legitimate senders.
Our email validation API is able to identify most types of disposable addresses, so you have one less thing to worry about when building your email lists the right way.


Why we are different
Create a competitive edge
What makes our email verification API unique is that each address is checked against a database of cached data that comes from the over 400b emails we deliver every year as a leading email service provider. And to add yet another layer of accuracy we also check against data that comes directly from the mailbox providers themselves for an unmatched level of performance.
An easy API for email address validation
Mailgun’s email validation tool to the rescue. It’s designed to validate email addresses submitted through forms like newsletters, registrations, and shopping carts. Integrate comprehensive email verification directly into the HTML on your site so that every lead is a lead you can use.
With Mailgun’s API, you get:
Mailbox detection directly verifies every email address with inbox providers like Gmail, Hotmail, Yahoo, and more so you know they actually have an email account
High-risk flags refuse disposable email addresses or other spammer indicators, like ones that include long strings of numbers and letters (like azaz09)
Grammar and syntax checks confirm local parts rules for major mailboxes, filtering out incorrect email addresses, like using a + sign for a Gmail account
Catch typos and common misspellings in domain names that come from filling out forms, like spelling “@outlooks” instead of “@Outlook.”
Back-end technical checks on MX records, SMTP mail servers, regular expression (regex) JavaScript, and more.
All of this happens thanks to Mailgun’s real-time API for developers. This email verification service gives you confidence that your email list is full of real people interested in your content, products, or services. No more bad data!

Validate with confidence
Go beyond the basics, check against: