ISmtp Send RequestOn Sender Not Accepted Method
Called when the sender 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#
void OnSenderNotAccepted(
MailboxAddress sender,
SmtpResponse response
)Parameters
- sender MailboxAddress
- The mailbox used in the MAIL FROM command.
- response SmtpResponse
- The response to the MAIL FROM command.
Remarks
Called when the sender is not accepted by the SMTP server.
Implementations should generally throw an appropriate SmtpCommandException.