SmtpProtocolExceptionCommand Property

Get the command that the client was processing when the error occurred.

Definition

Namespace: MailKit.Net.Smtp
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public SmtpCommand Command { get; }

Property Value

SmtpCommand
The command.

Remarks

Gets the SMTP command that the client was sending, or whose response it was reading, when the error occurred.

This value will be Unknown if the exception was created using a constructor that does not take an SmtpCommand argument.

See Also