In comp.lang.javascript message <cf5469cd-9131-4c85-b83f-53effaa0bad6@m4
4g2000hsc.googlegroups.com>, Mon, 25 Aug 2008 10:32:18, Thiago Macedo
Unless your have AJAX as an option, I found REGEX to be the best
solution.
Ajax could be bether when you need to check if the domain and account
is valid on the mailserver.
Outside this room, it is not possible at present to tell which merlyn E-
mail addresses, for example (e-mail address removed), are currently
valid.
World-wide, there must be millions of abandoned E-mail addresses, ones
which technically accept mail that will never be read.
The only trustworthy indication of E-address validity is to receive a
plausible reply to the content of a message sent to it; and that does
not prove continued validity.
False rejections prevent legitimate communication; there must be many
examples of "validators" in books and on the Web which insist in a 2-/3-
character final part :-(.
The only sensible test is one designed to verify that the string could
be grammatically valid, for example that there is at least one character
before an @, followed by at least one character, a dot, and at least one
character.
To do much more requires a full understanding of all applicable RFCs,
including new ones when they appear.
A well-designed system will allow such as
comment <address>
& address (comment)
though few examples are to be found.