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

OnSenderNotAccepted() protected method

Invoked when a recipient is not accepted by the SMTP server.
The default implementation throws an appropriate SmtpCommandException.
protected OnSenderNotAccepted ( 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 MAIL FROM command.
response MailKit.Net.Smtp.SmtpResponse The response to the MAIL FROM command.
return void
		protected virtual void OnSenderNotAccepted (MimeMessage message, MailboxAddress mailbox, SmtpResponse response)
		{
			throw new SmtpCommandException (SmtpErrorCode.SenderNotAccepted, response.StatusCode, mailbox, response.Response);
		}