Class SmtpAuthenticationException
Thrown when SMTP authentication fails (e.g. a 535 reply), when no common mechanism can be negotiated, or when authentication is refused over an unencrypted connection.
Inherited Members
Namespace: DRIT.Mail.Rfc.Smtp
Assembly: DRIT.Mail.dll
Syntax
public sealed class SmtpAuthenticationException : SmtpException, ISerializable, _Exception
Constructors
View SourceSmtpAuthenticationException(string)
Initializes a new instance of the SmtpAuthenticationException class.
Declaration
public SmtpAuthenticationException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message to process. |
SmtpAuthenticationException(string, SmtpResponse?)
Initializes a new instance of the SmtpAuthenticationException class.
Declaration
public SmtpAuthenticationException(string message, SmtpResponse? response)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message to process. |
| SmtpResponse | response | Specifies the response value. |
SmtpAuthenticationException(string, SmtpResponse?, Exception)
Initializes a new instance of the SmtpAuthenticationException class.
Declaration
public SmtpAuthenticationException(string message, SmtpResponse? response, Exception inner)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message to process. |
| SmtpResponse | response | Specifies the response value. |
| Exception | inner | Specifies the inner value. |
SmtpAuthenticationException(string, Exception)
Initializes a new instance of the SmtpAuthenticationException class.
Declaration
public SmtpAuthenticationException(string message, Exception inner)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message to process. |
| Exception | inner | Specifies the inner value. |