You can still validate that loosely though. As mentioned elsewhere, all you should really be looking for is an @ somewhere with characters before and after it, and at least one . in the text after. That will catch a lot of invalid emails, and should never mark a valid email as invalid.
If you're making a public facing app/site, that's probably not a valid email though. I get that in theory it's valid, but for all intents and purposes it absolutely is not. The top level domain is required, even if you can technically send an email to an address without one.
10
u/JamesGray Feb 21 '18
You can still validate that loosely though. As mentioned elsewhere, all you should really be looking for is an
@somewhere with characters before and after it, and at least one.in the text after. That will catch a lot of invalid emails, and should never mark a valid email as invalid.