SmtpSendRequestOnSenderNotAccepted 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
C#
public virtual 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.

Implements

ISmtpSendRequestOnSenderNotAccepted(MailboxAddress, SmtpResponse)

Remarks

Called when the sender is not accepted by the SMTP server.

The default implementation throws an appropriate SmtpCommandException.

Exceptions

SmtpCommandException The sender was not accepted.

See Also