Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-19-2009, 03:03 PM
Member
 
Join Date: Oct 2008
Posts: 5
Rep Power: 0
Raghuvasa is on a distinguished road
Default How To check email existed or not
Hi All,

I have developed one web application
in that i have one user registration application and having fields like name dob and Email id.

if the user specifies any email id then we have to send a mail to specified email address. sending mail is ok.


but before this i have to check the specified email id is existed or not
i mean domain and address were existed or not.

and if mail id is not correct then we will get a failure notice but i want to
find the response if it is failure. not failure mail.



How can i do it.
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 06-19-2009, 04:57 PM
RamyaSivakanth's Avatar
Senior Member
 
Join Date: Apr 2009
Location: Chennai
Posts: 585
Rep Power: 1
RamyaSivakanth is on a distinguished road
Default
Hi Raghuvasa,
You can use javax.mail.internet api for checking the validity of EmailAddress like this below.

Gothru below link
InternetAddress (Java 2 Platform Ent. Ed. v1.4)

Code:
InternetAddress address = new InternetAddress("specify the address");

address.validate();
__________________
Ramya
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-22-2009, 01:29 PM
Senior Member
 
Join Date: Apr 2009
Posts: 944
Rep Power: 1
Tolls is on a distinguished road
Default
Originally Posted by Raghuvasa View Post
but before this i have to check the specified email id is existed or not
i mean domain and address were existed or not.
If you mean whether an email address exists (ie does blah@blah.com exist), you can't. There's no reliable method for doing that.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 06-22-2009, 03:20 PM
OrangeDog's Avatar
Senior Member
 
Join Date: Jan 2009
Location: Cambridge, UK
Posts: 838
Rep Power: 2
OrangeDog is on a distinguished road
Default
Send a validation email with some kind of secure generated code that the user must then enter.

Of course, won't work with one-time email addresses.
__________________
Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
How To Ask Questions The Smart Way
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any perameter existed for Combobox? other than its value and label. kishan Advanced Java 4 06-03-2009 07:17 AM
automatic email pracheebapate New To Java 2 01-18-2009 09:07 PM
Check email by background thread sheky JavaServer Pages (JSP) and JSTL 5 10-21-2008 04:16 PM
send email using apache commons email jnamendi JavaServer Faces 0 10-14-2008 06:55 PM
help in email developing reached New To Java 0 12-09-2007 08:55 PM


All times are GMT +2. The time now is 01:35 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org