- Quick tips
Email's Best of 2021
Once upon a time, and by “a time” we mean a few years ago, companies sent emails to their contacts and customers somewhat blindly. To a large extent, they didn’t know if the addresses they had in their databases or forms were correct in syntax or one-time-use email addresses or distribution lists that go to 20 different people. All of which could adversely impact their sending domain’s reputation — essentially, it was chaos.
There were different attempts at addressing this, and the start of it was modest. In the beginning, programmers would use a complex regular expression to validate based on syntax.
However, it didn’t quite cut it. That method didn’t account for misspellings (take a minute and laugh at the idea of malegun.com – go ahead, we did too) or disposable email addresses used to collect coupon codes or role-based addresses that generally lead to higher complaint rates. The problem persisted until different validation services came into the picture.
Around that time, we rolled out our first version of an email validation service. Back then, it was a simple HTTP request to the API as well as a mailbox verification. The mailbox verification checked for the existence of MX records for a domain as well as if the inbox in question actually exists or not.
When we launched it, the feedback we got from customers was fantastic; they needed this ten years ago! But there was something missing to make it truly revolutionary for customers.
What was it?
Here we are in 2019 and what a time to be alive. We are so excited to tell you about our new v4 email validation service because it gives you what you were missing — guidance. Guidance as to whether or not you should send to an email address based on what we know about the address.
Essentially, our validations service now offers a definitive result of our validation check as well as the risk of sending to such address. All you have to do is submit an HTTP GET request to https://api.mailgun.net/v4/address/validate?address=localpart@domainpart.com and we’ll give you feedback about the address.
So, let’s take a minute to define the results and risks to get a better understanding of the output v4 validations provides you.
For starters, the result parameter can take one of four values described below. This is the definitive answer for whether or not a sender should use an address and replaces the is_valid parameter in v3 validations.
deliverable – An address that has a high likelihood of being legitimate and has passed all validation checks.
undeliverable – An address that is confirmed invalid and should be discarded from a list or corrected. Sending to this address may damage sender reputation.
do_not_send – An address that may damage sender reputation if messages are sent.
unknown – Unable to make a decision about the validity of the supplied address, usually due to a timeout when attempting to verify an address.
The risk parameter can take one of three values, described below. Risk helps senders understand how sending to an address may impact reputation or the potential impact of allowing a user onto a platform.
low – An address that is likely legitimate and sending to that address has a low likelihood of damaging reputation if the address has been obtained legitimately. We’ll make this assumption based on well-known domains (hotmail.com, gmail.com, etc.)
medium – The default or neutral state for risk calculation. An address that isn’t deemed a low or high risk will default to medium risk.
high – An address that has a high risk of damaging sender reputation or when used for verification should be challenged for validity.
Here are some examples of what these results look like to give you a better idea of what to expect. To start, we’re going to try a valid email address that happens to be role-based, like billing@mailgun.com:
{
"address": "billing@mailgun.com",
"is_disposable_address": false,
"is_role_address": true,
"reason": "mailbox_is_role_address",
"result": "deliverable",
"risk": "medium"
}
Given the results, yes, you can send to this address. However, you’re running a slight risk as it distributes to many people, and your emails have a high likelihood of being marked as spam.
Now let’s try a disposable address, and in the interest of not calling anyone out, we’re going to obscure the domain:
{
"address": "cevlav@◻︎◻︎◻︎◻︎◻︎◻︎◻︎◻︎◻︎◻︎◻︎.com",
"did_you_mean": null,
"is_disposable_address": true,
"is_role_address": false,
"reason": "mailbox_is_disposable_address",
"result": "do_not_send",
"risk": "high"
}
Steer clear of this one — disposable addresses are ripe for abuse.
Finally, how about a known-good address of an individual?
{
"address": "sam@mailgun.com",
"is_disposable_address": false,
"is_role_address": false,
"reason": [],
"result": "deliverable",
"risk": "low"
}
This one is good to go! You can rest assured if you send to this address, your email will deliver and not bounce.
Mailgun is proud of what we’ve accomplished with this new functionality of our validations, and we hope you enjoy it! We highly encourage anyone currently using our older v3 validations to consider migrating their applications to make use of the newest iteration of validations. It’s a massive improvement, both in performance and feedback.
Got any questions? Let us know in the comments!
Learn about our Deliverability Services
Looking to send a high volume of emails? Our email experts can supercharge your email performance. See how we've helped companies like Lyft, Shopify, Github increase their email delivery rates to an average of 97%.
Last updated on August 13, 2019
Email's Best of 2021
Mailgun Joins Sinch: The Future of Customer Communications Is Here
COVID-19 Survey: How the Pandemic Has Affected Email Sending
Mailgun Validations Features Improved Performance for EU Customers
How To Build An Email List The Right Way
Say Hello to Pathwire
Catch-All Domain Support Is Now Available In Email Validations
Why Email Validation Is Vital For Your Inbox
We Did It: Risk-Free Email Validation From Mailgun
Mailgun’s COVID-19 Plan of Action
InboxReady x Salesforce: The Key to a Stronger Email Deliverability
Become an Email Pro With Our Templates API
Google Postmaster Tools: Understanding Sender Reputation
Navigating Your Career as a Woman in Tech
Implementing Dmarc – A Step-by-Step Guide
Email Bounces: What To Do About Them
Announcing InboxReady: The deliverability suite you need to hit the inbox
Black History Month in Tech: 7 Visionaries Who Shaped The Future
How To Create a Successful Triggered Email Program
Designing HTML Email Templates For Transactional Emails
InboxReady x Salesforce: The Key to a Stronger Email Deliverability
Implementing Dmarc – A Step-by-Step Guide
Announcing InboxReady: The deliverability suite you need to hit the inbox
Designing HTML Email Templates For Transactional Emails
Email Security Best Practices: How To Keep Your Email Program Safe
Mailgun’s Active Defense Against Log4j
Email Blasts: The Dos And Many Don’ts Of Mass Email Sending
Email's Best of 2021
5 Ideas For Better Developer-Designer Collaboration
Mailgun Joins Sinch: The Future of Customer Communications Is Here
Always be in the know and grab free email resources!
By sending this form, I agree that Mailgun may contact me and process my data in accordance with its Privacy Policy.