SmtpProtocolException(String, ProtocolErrorType, SmtpCommand, SmtpResponse, Exception) Constructor

Initializes a new instance of the SmtpProtocolException class.

Definition

Namespace: MailKit.Net.Smtp
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public SmtpProtocolException(
	string message,
	ProtocolErrorType errorType,
	SmtpCommand command,
	SmtpResponse? lastResponse,
	Exception innerException
)

Parameters

message  String
The error message.
errorType  ProtocolErrorType
The type of protocol error.
command  SmtpCommand
The command that the client was processing when the error occurred.
lastResponse  SmtpResponse
The last complete response received from the server for the current command, if any.
innerException  Exception
An inner exception.

Remarks

Creates a new SmtpProtocolException.

See Also