| Home | Downloads | Support | Purchase/Pricing | Contact Us |
   ExclamationSoft Logo (Click here to go home)
 

MailListBot   

http://www.MailListBot.com    

MailListBot Home > Help Home > Examples Home
MailListBot Examples - Verify a List of Email Addresses


Email Address Verification is Not Available in the Lite version
Buy the Pro version now, which includes this feature

This example demonstrates the verification of a list of email addresses contained in a MS Access database using various DB properties.


ASP Code
  1. Create the MailListBot object:
    
    Dim oMailListBot
    Set oMailListBot = Server.CreateObject ("ExclamationSoft.MailListBot.3")
    If oMailListBot Is Nothing Then
    	Response.Write "Could not create MailListBot object"
    	Set oMailListBot = Nothing
    	Exit Function
    End If
    
    
  2. Database Properties:
    
    oMailListBot.SetDsn = "Driver={Microsoft Access Driver (*.mdb)};"&_
    	"DBQ=C:
    	\data\MailListBot.mdb;"
    oMailListBot.SetDBTable = "Customer"
    oMailListBot.SetDBEmailColumn = "email"
    
    
  3. Verification files. Use the properties SetGoodEmailFile, SetBadEmailFile, and SetSuspectEmailFile to store email addresses that have been verified. These settings are optional.
    
    oMailListBot.SetGoodEmailFile = "c:\good.txt""
    oMailListBot.SetBadEmailFile = "c:\bad.txt"
    oMailListBot.SetSuspectEmailFile = "c:\suspect.txt"
    
    
  4. Verify email addresses:
    
    If oMailListBot.VerifyList = false Then
    	Response.Write "A problem occurred while verifying email addresses"
    	Response.Write "Error message:["&oMailListBot.GetErrorMsg&"]"
    	Set oMailListBot = Nothing
    	Exit Function
    End If
    
    Set oMailListBot = Nothing
    
    
Cut-And-Paste Code

 

 

 

 

Have a suggestion for our documentation? Let us know: support@MailListBot.com. We're here to help.

Content, HTML, and files Copyright © 1999-2002 ExclamationSoft Inc.
Click here for our privacy policy
Problems, questions, information, click here