• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Checking email address existence

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello
I would like to know,using java,if its possible to check whether an email address really exists?
Thanks in advance
Sunil.
 
High Plains Drifter
Posts: 7289
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sunil -
It's certainly possible in any language, but the conventional method may not be allowed by the mail service you query. Here's a sample transcript from a machine that does allow the SMTP operation VRFY:

Here's one from a machine that allows the operation but doesn't return the requested information:

And finally one that doesn't support VRFY at all:

There's no programmatic way to make another program give you something it doesn't want to give, but you can certainly encode the request through a socket with very little effort.
------------------
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide
[This message has been edited by Michael Ernest (edited December 27, 2001).]
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is of course the one sure standby...
When someone attempts to register, create an account marked as "not verified". Send them an e-mail along with a unique identifier (a 24 digit random number for example) built into a URL that has been saved on their account. When they click on the URL, it triggers a servlet that verifies that the unique identifier is correct. The only way they could have known the unique identifier is if they read the e-mail.
 
reply
    Bookmark Topic Watch Topic
  • New Topic