Click or drag to resize
MimeKit

SmtpClientOnSenderNotAccepted 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 OnSenderNotAccepted(
	MimeMessage message,
	MailboxAddress mailbox,
	SmtpResponse response
)

Parameters

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