ISendRequestOnStarted 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
C#
void OnStarted(
	IMailTransport transport
)

Parameters

transport  IMailTransport
The transport that is sending the message.

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.

See Also