SmtpReceiveAgent.OnMailCommand Event

The OnMailCommand event occurs when the server receives a Simple Mail Transfer Protocol (SMTP)MAIL command.

Namespace:  Microsoft.Exchange.Data.Transport.Smtp
Assembly:  Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)

Syntax

'Declaration
Protected Event OnMailCommand As MailCommandEventHandler
'Usage
Dim handler As MailCommandEventHandler

AddHandler Me.OnMailCommand, handler
protected event MailCommandEventHandler OnMailCommand