Class SmtpProtocolException
Thrown when the SMTP server returns an unexpected or non-compliant reply, or when a required extension is not advertised.
Inherited Members
Namespace: DRIT.Mail.Rfc.Smtp
Assembly: DRIT.Mail.dll
Syntax
public sealed class SmtpProtocolException : SmtpException, ISerializable, _Exception
Constructors
View SourceSmtpProtocolException(string)
Initializes a new instance of the SmtpProtocolException class.
Declaration
public SmtpProtocolException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message to process. |
SmtpProtocolException(string, SmtpResponse?)
Initializes a new instance of the SmtpProtocolException class.
Declaration
public SmtpProtocolException(string message, SmtpResponse? response)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message to process. |
| SmtpResponse | response | Specifies the response value. |
SmtpProtocolException(string, Exception)
Initializes a new instance of the SmtpProtocolException class.
Declaration
public SmtpProtocolException(string message, Exception inner)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message to process. |
| Exception | inner | Specifies the inner value. |