SendResultRejectedRecipients Property

Get the recipients that were rejected by the server.

Definition

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public IReadOnlyList<MailboxAddress> RejectedRecipients { get; }

Property Value

IReadOnlyListMailboxAddress
The rejected recipients.

Remarks

Gets the recipients that were rejected by the server.

By default, the SmtpClient throws an exception when a recipient is rejected, so this list will only contain recipients if OnRecipientNotAccepted(MailboxAddress, SmtpResponse) has been overridden to not throw.

See Also