Don’t lose customers because of typos

Much more than regex validation

If you’re not validating emails at signup, you have a problem. If you’ve implemented regular expressions to solve this, you now have two problems.

Regex is complex to write, debug and often inaccurate, because syntax is only one part of whether an email is valid.

Approved validation

Validation based on billions of sent emails

RFC states the formal rules for email addresses. However, in the real world ESPs accept addresses that are not RFC-valid, and reject addresses that are.

When we built our validator, we did based on real-world data + RFC spec to ensure more accurate validation.

“Mailgun’s email validation API has allowed us to programmatically catch typos in email addresses submitted by our users. Integration with the API was fast and easy, and the Mailgun team was responsive and reliable!”

— Gordon Su, Co-Founder, PennyPop

Custom ESP grammar

All major ESPs have their own set up custom grammar that impact whether an email addres is valid in the real world.

We’ve integrated custom grammar checks for Gmail, Hotmail, and Yahoo into our email validator and are always adding more custom grammar checks as we discover these rules.

  • m+mailgun@gmail.com
    Doesn’t meet Gmail’s local parts rules.
  • michael….is….awesome18@gmail.com
    Meets local parts rules because dots are ignored.
Email validation suggestions

“Did you mean gmail.com?” and other suggestions

People make typos all the time. Gmail.com can easily become gmal.com and when it does, you can miss out on connecting with that customer.

That’s why we built in a suggestion service into our email validation service. When we have a suggestion for a common typos, we’ll return it along with invalid status, so you can offer the suggestion to your user.

Open-sourced and free to use

You can fork Flanker, our Python email address and Mime parsing library, and start using it today.

We are super excited about the community both using it and contributing to it. Flanker, being an integral part of Mailgun, means we will be actively maintaining it and improving it as long as we’re around.

Open sourced on GitHub

Other great features of Mailgun validation

  • DNS lookups
  • MX and A-record look ups
  • Parse email address in bulk into local part and domain

Who's using Mailgun validation API?

PennyPop ZenMate