Smtp Service Not Authenticated Exception Constructor
Initializes a new instance of the SmtpServiceNotAuthenticatedException class.
Definition
Namespace: MailKit.Net.Smtp
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public SmtpServiceNotAuthenticatedException(
SmtpCommand command,
SmtpResponse response
)Parameters
- command SmtpCommand
- The command that the server responded to.
- response SmtpResponse
- The server's response.
Remarks
Creates a new SmtpServiceNotAuthenticatedException using the response text as the error message.
Exceptions
| ArgumentNullException | response is . |