Results 1 to 4 of 4
- 06-19-2009, 02:03 PM #1
Member
- Join Date
- Oct 2008
- Posts
- 5
- Rep Power
- 0
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.
- 06-19-2009, 03:57 PM #2
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)
Java Code:[B]InternetAddress address = new InternetAddress("specify the address"); address.validate();[/B]Ramya:cool:
- 06-22-2009, 12:29 PM #3
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
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.
- 06-22-2009, 02:20 PM #4
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
Similar Threads
-
Is there any perameter existed for Combobox? other than its value and label.
By kishan in forum Advanced JavaReplies: 4Last Post: 06-03-2009, 06:17 AM -
automatic email
By pracheebapate in forum New To JavaReplies: 2Last Post: 01-18-2009, 08:07 PM -
Check email by background thread
By sheky in forum JavaServer Pages (JSP) and JSTLReplies: 5Last Post: 10-21-2008, 03:16 PM -
send email using apache commons email
By jnamendi in forum JavaServer Faces (JSF)Replies: 0Last Post: 10-14-2008, 05:55 PM -
help in email developing
By reached in forum New To JavaReplies: 0Last Post: 12-09-2007, 07:55 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks