| 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 One Email Address


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

This example shows how to verify one email address.

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. Verify one email address
    
    Dim nReturnCode
    nReturnCode = oMailListBot.VerifyOne("email@domain.com")
    If nReturnCode = 0 Then 'Email Address is GOOD
    	Response.Write sTo &" is good."
    ElseIf nReturnCode = 1 Then 'Email Address is BAD
    	Response.Write sTo &" is bad."
    ElseIf nReturnCode = 2 Then 'Email Address is SUSPECT
    	Response.Write sTo &" is suspect."
    ElseIf nReturnCode = 3 Then 'Error
    	Response.Write "Unable to verify the email address due to an error."
    	Response.Write "Error message:["&oMailListBot.GetErrorMsg&"]"
    	DisplayLog 
    	Response.End
    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