This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes e-mail Validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "e-mail Validation" Watch "e-mail Validation" New topic
Author

e-mail Validation

Ramesh Etta
Ranch Hand

Joined: Sep 18, 2007
Posts: 46
Hi,
I have a text field to enter email, and when i enter the mail, it needs to validate in such a way that, only Business mail Ids should be accepted and all the free mails we can see
in the web should not be allowed.

I mean if enter mail id like xyz@yahoo.com, abc@gmail.com etc should not be accepted. and business mails like ibm.com, oracle.com etc should be allowed.
I can put the free mailids in a list and validate, but how can i know that this particular mail id like xxx.xyz.com is free mail / business mail. ( as there are many free mails available on the web ).

Is there any way to check this.

Please reply.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19656
    
  18

I'm afraid not. Even an address like xxx@yahoo.com could potentially be a business address, for someone actually working at Yahoo.

The best you can do is collect a list of free emailing services, and block those. Of course this list will never be complete because at any time a new one can pop up.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41155
    
  45
In addition to what Rob said, people who are self-employed or work as freelancers may not have what you'd consider a "business email address". GMail or Yahoo etc. may indeed be their primary business email.


Ping & DNS - my free Android networking tools app
Ramesh Etta
Ranch Hand

Joined: Sep 18, 2007
Posts: 46
Thanks for your replies.

I am having the same concern too.

But if you find any kind of Java programs which can do validate the business mail id vs free mail ids please reply to the mail.

Thanks once again.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19656
    
  18

Ramesh Etta wrote:please reply to the mail.

We prefer to Use The Forum, Not Email.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Rob is correct. I work for a large corporation. Our customers are businesses, too. We send e-mail to lots of our customers, and it's not uncommon for them to be yahoo.com or aol.com or other free accounts.

So I guess that I (and maybe Rob too) am questioning what's the point of this requirement?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19656
    
  18

I can only guess it's to prevent people from quickly registering a free email address, using it for only a single time and then dumping it.
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
If that is true, then maintaining a blacklist is the only what you can do. But it is like mopping with an open valve.
 
 
subject: e-mail Validation
 
Similar Threads
Assignment Log Project
Webservices and POP mail access
Retrieving web based mails using Java
mailing list
Opening encrypted mails