This documentation is archived and is not being maintained.

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)

protected event MailCommandEventHandler OnMailCommand
/** @event */
protected void add_OnMailCommand (MailCommandEventHandler value)

/** @event */
protected void remove_OnMailCommand (MailCommandEventHandler value)

JScript supports the use of events, but not the declaration of new ones.

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows Server 2003
Show: