K-and-R / email_validator

An email validator for Rails.
MIT License
644 stars 63 forks source link

Validation not catching jdoe@example-com #59

Closed SaimonL closed 5 years ago

SaimonL commented 5 years ago

Validation not catching

karlwilbur commented 5 years ago

This is expected behavior. Please read the 'Validation philosophy" section of the README.

You can also see more detail in my comment on #58.

SaimonL commented 5 years ago

Reading http://www.dns-sd.org/trailingdotsindomainnames.html I have realized that you can send an email to a local host that do not have any dot in the domain name. The dot is not necessary unless you want a "Fully-Qualified Domain" email to be sent.

karlwilbur commented 5 years ago

@SaimonL You can also send an email to a local user in which case the local host is inferred. Thus karl is a valid email address and the @ isn't strictly needed either. I do this several times a year myself.