SmtpReceiveAgent members

The SmtpReceiveAgent class is the base class for agent classes that use Simple Mail Transfer Protocol (SMTP) receive events.

The SmtpReceiveAgent type exposes the following members.

Constructors

  Name Description
Protected method SmtpReceiveAgent The SmtpReceiveAgent constructor initializes a new instance of the SmtpReceiveAgent class.

Top

Properties

  Name Description
Protected property EventTopic Gets or sets a string value that contains the name of the event that this instance of the Agent class or a class derived from the Agent class is raising. (Inherited from Agent.)
Protected property Name Gets or sets a string value that contains the computer name for this instance of the class that derives from the Agent class. (Inherited from Agent.)

Top

Methods

  Name Description
Protected method GetAgentAsyncContext When overridden in a derived class, gets a AgentAsyncContext object to mark the executing event handler to execute asynchronously. (Inherited from Agent.)

Top

Events

  Name Description
Protected event OnAuthCommand The OnAuthCommand event occurs when the server receives a Simple Mail Transfer Protocol (SMTP)AUTH command and before the server responds to the command.
Protected event OnConnect The OnConnect event occurs when the server receives a Simple Mail Transfer Protocol (SMTP) connection.
Protected event OnDataCommand The OnDataCommand event occurs when the server receives a Simple Mail Transfer Protocol (SMTP)DATA command.
Protected event OnDisconnect The OnDisconnect event occurs when a Simple Mail Transfer Protocol (SMTP) connection to the server is closed.
Protected event OnEhloCommand The OnEhloCommand event occurs when the server receives a Simple Mail Transfer Protocol (SMTP)EHLO command.
Protected event OnEndOfAuthentication The OnEndOfAuthentication event occurs when the server responds to a Simple Mail Transfer Protocol (SMTP)AUTH command.
Protected event OnEndOfData The OnEndOfData event occurs when the server reaches the end of data for a Simple Mail Transfer Protocol (SMTP) message.
Protected event OnEndOfHeaders The OnEndOfHeaders event occurs when the server reaches the end of the headers for a Simple Mail Transfer Protocol (SMTP) message.
Protected event OnHeloCommand The OnHeloCommand event occurs when the server receives a Simple Mail Transfer Protocol (SMTP)HELO command.
Protected event OnHelpCommand The OnHelpCommand occurs when the server receives a Simple Mail Transfer Protocol (SMTP)HELP command.
Protected event OnMailCommand The OnMailCommand event occurs when the server receives a Simple Mail Transfer Protocol (SMTP)MAIL command.
Protected event OnNoopCommand The OnNoopCommand event occurs when the server receives a Simple Mail Transfer Protocol (SMTP)NOOP command.
Protected event OnRcptCommand The OnRcptCommand event occurs when the server receives a Simple Mail Transfer Protocol (SMTP)RCPT command.
Protected event OnReject The OnReject event occurs when any other event rejects a command or message.
Protected event OnRsetCommand The OnRsetCommand event occurs when the server receives a Simple Mail Transfer Protocol (SMTP)RSET command.
Protected event OnStartTlsCommand Occurs when server receives a Simple Mail Transfer Protocol (SMTP)STARTTLS command.

Top

See also

Reference

SmtpReceiveAgent class

Microsoft.Exchange.Data.Transport.Smtp namespace