MailKit.Net.Smtp.SmtpClient.OnRecipientNotAccepted C# (CSharp) Method

OnRecipientNotAccepted() protected method

Invoked when a recipient is not accepted by the SMTP server.
The default implementation throws an appropriate SmtpCommandException.
protected OnRecipientNotAccepted ( MimeMessage message, MimeKit.MailboxAddress mailbox, MailKit.Net.Smtp.SmtpResponse response ) : void
message MimeKit.MimeMessage The message being sent.
mailbox MimeKit.MailboxAddress The mailbox used in the RCPT TO command.
response MailKit.Net.Smtp.SmtpResponse The response to the RCPT TO command.
return void
		protected virtual void OnRecipientNotAccepted (MimeMessage message, MailboxAddress mailbox, SmtpResponse response)
		{
			throw new SmtpCommandException (SmtpErrorCode.RecipientNotAccepted, response.StatusCode, mailbox, response.Response);
		}