winzip icon

An Excellent E-Mail Validator

Submitted on: 1/10/2015 9:35:00 AM
By: Arun Nair (from psc cd)  
Level: Intermediate
User Rating: By 7 Users
Compatibility: VB 6.0, VB Script, ASP (Active Server Pages) , VBA MS Access, VBA MS Excel
Views: 1287
     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 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 :)
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net

Other 4 submission(s) by this author


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)

Other User Comments

8/30/2016 4:12:11 PMphil

Here's a simple one:

' The following example codes demonstrate testing email address using MX DNS lookup
' To get full sample projects, please download and install EASendMail on your machine.
' To run it correctly, please change SMTP server, user, password, sender, recipient value to yours

Private Sub btnSendMail_Click()

Dim oSmtp As New EASendMailObjLib.Mail
oSmtp.LicenseCode = "TryIt"

' Set your sender email address
oSmtp.FromAddr = ""

' Add recipient email address
oSmtp.AddRecipientEx "", 0

' Do not set SMTP server address
oSmtp.ServerAddr = ""

MsgBox "start to test email address..."

If oSmtp.TestEmailAddr() = 0 Then
MsgBox "email address was verified!"
MsgBox "failed to test email address with the following error:" & oSmtp.GetLastErrDescription()
End If

End Sub
(If this comment was disrespectful, please report it.)


Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)

To post feedback, first please login.