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

Parameters

message
Type: MimeKitMimeMessage
The message being sent.
mailbox
Type: MimeKitMailboxAddress
The mailbox used in the MAIL FROM command.
response
Type: MailKit.Net.SmtpSmtpResponse
The response to the MAIL FROM command.
Remarks
The default implementation throws an appropriate SmtpCommandException.
See Also