MailGun
Mailgun provides a very easy REST API for validation.
Here I demonstrate the use of Mailgun API. Please enter an email address in the text field below and press tab
so the text field loses focus)
A call to the API will be made and one of three responses will be shown:
https://github.com/mailgun/validator-demo - Valid
- Invalid
- Suggestion
http://documentation.mailgun.com/api-email-validation.html#example
Advanced jQuery Email Address Validator by Mailgun
Try some invalid addresses:
- john@gmail.com: Does not meet Gmail minimum local-part length of 6 characters.
- john.smith@gmaill.com: Invalid, because gmaill.com does not have valid MX records.
- john@microsoft.io: Invalid because while microsoft.io does not have any MX records, it does have fallback A records, but alas no Mail Exchanger responds.
Try some valid addresses:
- john.smith@gmail.com: Meets Gmail 6 character minimum and all other requirements.
Remember to sign up for Mailgun to receive your public API key.