ISmtpSendRequestOnRecipientNotAccepted Method

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

Definition

Namespace: MailKit.Net.Smtp
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
void OnRecipientNotAccepted(
	MailboxAddress recipient,
	SmtpResponse response
)

Parameters

recipient  MailboxAddress
The mailbox used in the RCPT TO command.
response  SmtpResponse
The response to the RCPT TO command.

Remarks

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

If this method throws an exception, the message will not be sent. Otherwise, the recipient will be added to the RejectedRecipients and the message will be sent to the remaining recipients.

See Also