| View previous topic :: View next topic |
| Author |
Message |
Ak423 Initiate

Joined: 16 Feb 2005 Posts: 24
|
Posted: Mon Apr 14, 2008 2:29 pm Post subject: Email Validation using Java |
|
|
Is there any way to check if an email address actually exists before sending out a "form" email using Java mail?
I've got a form that needs to be sent out to an email address provided by the user, and I need to check if the email address exists, and if it doesn't return some kind of a error message.
So, any java pros that can help me, it would be much appreciated. _________________ The Superior Inferiority |
|
| Back to top |
|
 |
Roach412 Black Belt 2nd Degree

Joined: 09 Aug 2004 Posts: 2426 Location: Milwaukee - Wisconsin
|
Posted: Mon Apr 14, 2008 8:10 pm Post subject: |
|
|
if it "exists"? i don't think so. the only way to accomplish that is to actually send an email to the address, and see if you receive a reply from the admin(system) saying it's invalid.
the only way to validate that the information itself is valid is to do some string comparisons, finding the original (address) portion up to the @ symbol, then finding the remaining host information (i.e. hotmail) and then the affiliation (i.e. .com or .edu).
that will let you know whether it's a "valid" address...but not that it exists.
-Roach _________________ Lian Li Lancool First Knight Series PC-K59W
Intel Core i7-960 Bloomfield 3.2GHz
EVGA X58 FTW3 132-GT-E768-TR
EVGA GTX 560ti FPB
G.SKILL Ripjaws Series 12GB (3 x 4GB)
Crucial M4 128gb SATAIII SSD
Corsair Professional Series HX850 PSU |
|
| Back to top |
|
 |
GodSquirrel Guest
|
Posted: Tue Apr 15, 2008 12:55 am Post subject: |
|
|
| why not have the receiver of the email click a validation link? |
|
| Back to top |
|
 |
Deman Risu Pilgrim

Joined: 30 Sep 2009 Posts: 6
|
Posted: Wed Sep 30, 2009 6:31 pm Post subject: |
|
|
| As a previous poster said, the only way to really "check" if an email address exists is to email it and see what happens. If it doesn't exist, you'll get an email from the "mailer daemon" usually. |
|
| Back to top |
|
 |
|