Question

I'm using the native jQuery validation library to validate email addresses entered in a contact form. Since this is an Expression Engine site, I'm using its email validator as a server side backup.

When I enter test@b.c, jQuery says it's valid but when submitted, the Expression Engine validator says it is not valid.

I know that validating email addresses can get very complex but which of the two results would you consider as being "correct" ?

Was it helpful?

Solution

It's a technically valid email address, but it cannot be delivered to. (There are no single-character TLDs)
Take your pick.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top