Smtp Send RequestOn Recipient Not Accepted 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
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public virtual 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.
Implements
ISmtpSendRequestOnRecipientNotAccepted(MailboxAddress, SmtpResponse)Remarks
Called when a recipient is not accepted by the SMTP server.
The default implementation throws an appropriate SmtpCommandException. Override this method to not throw in order to send the message to the remaining recipients.
Exceptions
| SmtpCommandException | The recipient was not accepted. |