Send RequestOn Started Method
Called when the message is about to be sent to the server.
Definition
Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public virtual void OnStarted(
IMailTransport transport
)Parameters
- transport IMailTransport
- The transport that is sending the message.
Implements
ISendRequestOnStarted(IMailTransport)Remarks
Called immediately before the message data is sent to the server.
If this method is called but OnCompleted(IMailTransport, SendResult) is not called and the operation fails with an exception other than a CommandException, then it is unknown whether or not the server accepted the message for delivery.
The default implementation does nothing.