Hi friends,
Can somebody please tell me how to validate E-mail Id in
java?
Thanking you,
Prashant
swordinhand - 27 Apr 2006 17:22 GMT
use regular expression
Pasha
> Hi friends,
>
[quoted text clipped - 4 lines]
>
> Prashant
Oliver Wong - 27 Apr 2006 18:18 GMT
> use regular expression
> Pasha 写道:
[quoted text clipped - 3 lines]
> > Can somebody please tell me how to validate E-mail Id in
> > java?
Validating e-mails with regular expression is non-trivial. Luckily,
someone has already written the regular expression and published it for free
on the Internet:
http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html
- Oliver
Roedy Green - 27 Apr 2006 19:36 GMT
> Can somebody please tell me how to validate E-mail Id in
>java?
you can look at the code in http://mindprod.com/products1.html#BULK
It validates emails and give you a ranking as to how likely the email
will deliver.
Many theoretically legal emails are most likely errors.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Pasha - 28 Apr 2006 06:06 GMT