SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

Email Validation API providing incorrect results

Question

Why the Email Validation API shows an 'Invalid' verdict for perfectly good email addresses?

 

Product

Twilio SendGrid (Email)

 

Answer

In most cases, the reason is the email address itself, particularly if it contains two or more consecutive special characters, such as dots or underscores or a combination of them. In these cases, the check 'has_valid_address_syntax' is marked as 'False' and therefore, all the other checks will auto-fail. 

Please note that addresses with this syntax are very uncommon which is why these 'Invalid' verdicts are considered Edge cases, and therefore, not accounted for within the design of the Email Validation API. 

 

Additional Information 

Although there is no rule in the RFC5322 standard that prevent such email address from being created, the Email Validation tool has been designed keeping in mind compatibility across different email services. Gmail, for example, doesn't accept the underscore in their email addresses, although the RFC5322 clearly states that _ is a valid character within an email address. 

Have more questions? Submit a request
Powered by Zendesk