Table of Contents

Method RecipientRefused

Namespace
MailFathom.Application.Mail.Delivery.Governance
Assembly
MailFathom.Application.dll

RecipientRefused(OutgoingRecipientRefusalReason)

Reports a message naming a recipient this deployment's recipient policy does not admit.

public static OutgoingMailRefusedException RecipientRefused(OutgoingRecipientRefusalReason reason)

Parameters

reason OutgoingRecipientRefusalReason

Which half of the policy refused.

Returns

OutgoingMailRefusedException

The failure to raise.

Remarks

The message is refused whole rather than delivered to the recipients the policy admits, and it says so, because a caller told only that one address was refused would reasonably retry with the rest — which is the send the policy exists to prevent.

Exceptions

ArgumentOutOfRangeException

Thrown when the reason is not one this system declares.