mailgun / validator-demo

Mailgun email address jquery validation plugin http://mailgun.github.io/validator-demo/
Apache License 2.0
257 stars 80 forks source link

Hyphenated domains are marked invalid #24

Open admrply opened 7 years ago

admrply commented 7 years ago

Any domain with a hyphen is marked as invalid, for example: this@foo-bar.com

vv12131415 commented 7 years ago

@admrply not any, for example somename@eq-se.com this is valid But still there is an issue. Also some-name@rolls-royce.co.uk (that the real domain, check it in whois)

jeffreykemp commented 7 years ago

foo-bar.com is not (currently) a valid domain; it certainly is not publishing any MX records. So it should not be marked as valid.

RyanPaiva56 commented 4 years ago

We can reproduce this as well in production with a user-name@yahoo.com email address. Sending an email to them (over gmail) works, but validating the email using this API fails validation.