|
MailListBot Examples - Verify a List of Email Addresses
|
This example demonstrates the verification of a list of email
addresses contained in a MS Access database using various DB properties.
- 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
- Database Properties:
oMailListBot.SetDsn = "Driver={Microsoft Access Driver (*.mdb)};"&_
"DBQ=C:
\data\MailListBot.mdb;"
oMailListBot.SetDBTable = "Customer"
oMailListBot.SetDBEmailColumn = "email"
- 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"
- 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
|
Have a suggestion for our documentation? Let us know: support@MailListBot.com. We're here to help. |