The Mother Board
Email Validation using Java

 
Post new topic   Reply to topic    The Mother Board Forum Index -> Programming
View previous topic :: View next topic  
Author Message
Ak423
Initiate
Initiate


Joined: 16 Feb 2005
Posts: 24

PostPosted: Mon Apr 14, 2008 2:29 pm    Post subject: Email Validation using Java Reply with quote

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
View user's profile Send private message
Roach412
Black Belt 2nd Degree
Black Belt 2nd Degree


Joined: 09 Aug 2004
Posts: 2537
Location: Milwaukee - Wisconsin

PostPosted: Mon Apr 14, 2008 8:10 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
GodSquirrel
Guest





PostPosted: Tue Apr 15, 2008 12:55 am    Post subject: Reply with quote

why not have the receiver of the email click a validation link?
Back to top
Deman Risu
Pilgrim
Pilgrim


Joined: 30 Sep 2009
Posts: 6

PostPosted: Wed Sep 30, 2009 6:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The Mother Board Forum Index -> Programming All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group