wodSmtpServer ActiveX Control - VerifyAddress Event
    
 

Description

Fires when user wants to verify an address


Syntax

Private Sub object_VerifyAddress(User, Address, Response)



The VerifyAddress Event syntax has these parts:

Part Description
object A wodSmtpServer object.
User A SmtpUser object. Reference to the user who wants to verify an address.
Address A String value. Email address or account name user is verifying.
Response A Variant value. Response you will send to the user.

Remarks

Some SMTP servers allow 'VRFY' command so that clients can verify if some account exists on the server. For example, client is interested if your server have user 'joe', but doesn't really know who he is and if he's really having his mail exactly on your server. For this purpose, they can connect to server and issue 'VRFY joe' command. If you are willing to provide information about account joe, you can set Response variable to Joe's name and email address, so they know in future what's real name for user Joe.

If you do want to provide such information, you can do it like this:

Private Sub wodSmtpServer1_VerifyAddress(ByVal User As WODSMTPSERVERCtl.ISmtpUser, ByVal Address As String, Response As Variant)
    Response = "Ozzie WeOnlyDo! <ozzie>"
End Sub
 

As you can see, all you need to send is one line that includes user's real name, and his email inside <> characters (this is by convention). However, if there are several users that have keyword 'joe', you can provide more than one line of response information. In such cases, just divide them with CRLF sequence.