This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

e-mail Validation

 
Ramesh Etta
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ramesh Etta
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ramesh Etta wrote:please reply to the mail.

We prefer to Use The Forum, Not Email.
 
Paul Clapham
Sheriff
Pie
Posts: 20763
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If that is true, then maintaining a blacklist is the only what you can do. But it is like mopping with an open valve.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic