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: 4.7.1
Syntax
C#
protected virtual void OnRecipientNotAccepted(
	MimeMessage message,
	MailboxAddress mailbox,
	SmtpResponse response
)

Parameters

message  MimeMessage
The message being sent.
mailbox  MailboxAddress
The mailbox used in the RCPT TO command.
response  SmtpResponse
The response to the RCPT TO command.
Remarks
The default implementation throws an appropriate SmtpCommandException.
See Also