VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



An Excellent E-Mail Validator

by Arun Nair (5 Submissions)
Category: OLE/COM/DCOM/Active-X
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (7 Votes)

Validating an email address is a big headache to both the web and stand alone app developers. Especially when the e-mail is used as the handle or key to your transactions, its structure becomes of importance and has to be properly entered. Unfortunately developing a module or an application to solve this problem is not without its own set of problems ....besides having to spend valuable time in combining and interpreting the validations.
As a developer, I faced this problem more than once and decided to find a permanent solution...and what better way than to develop a COM component!! and make it universally perusable!
Yes, you now have a powerful piece of component(with its source code) at your disposal. This COM not only comes as a boon(because of its inherent quality of being a COM and being multiusable), but also a great time saver . I'm sure you'll find this component worthy, as has many other developers in my organisation(yes!! its widely used in my company :)).
I have covered all aspects of email validations here ...so when you enter an email address for verification, you are sure it'll be verified!!
I have also added the DLL along with the ZIP :)

Inputs
An email address to be verified. To use the COM follow the steps: 1.) Reference the COM through Project references(if you are using VB) 2.) If you are not using VB .for eg. within your ASP script, write the code dim mvObj set mvObj=Server.CreateObject("ArunUtils.MailValidator") 3.) Now refer the checkMailVal method within the object. and store the output in a var eg: result=mvObj.checkMailVal("[email protected]") 4.) If the email is structurely right, the return value is an empty string ...else the error description is returned as the string
Assumes
Basic knowledge of Visual Basic and also usage of COM components
Code Returns
Whether the email supplied is valid or not!
Side Effects
Nothing!!

Rate An Excellent E-Mail Validator

Download An Excellent E-Mail Validator

Download An Excellent E-Mail Validator (6 KB)

An Excellent E-Mail Validator Comments

No comments have been posted about An Excellent E-Mail Validator. Why not be the first to post a comment about An Excellent E-Mail Validator.

Post your comment

Subject:
Message:
0/1000 characters