Click or drag to resize
MimeKit

SmtpClientOnRecipientNotAccepted Method

Invoked when a recipient is not accepted by the SMTP server.

Namespace:  MailKit.Net.Smtp
Assembly:  MailKit (in MailKit.dll) Version: 2.3.0
Syntax
C#
protected virtual void OnRecipientNotAccepted(
	MimeMessage message,
	MailboxAddress mailbox,
	SmtpResponse response
)

Parameters

message
Type: MimeKitMimeMessage
The message being sent.
mailbox
Type: MimeKitMailboxAddress
The mailbox used in the RCPT TO command.
response
Type: MailKit.Net.SmtpSmtpResponse
The response to the RCPT TO command.
Remarks
The default implementation throws an appropriate SmtpCommandException.
See Also