|
MailListBot Examples - Verify One Email Address
|
This example shows how to verify one email address.
- 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
- 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
|
Have a suggestion for our documentation? Let us know: support@MailListBot.com. We're here to help. |