This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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 firstname.lastname@example.org, email@example.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 ).
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.
Joined: Sep 18, 2007
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.
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?