Table of Contents

Method ByContact

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

ByContact(OutgoingRecipientRole, ContactId, string?)

Names a recipient by the identity the book gave them.

public static NamedRecipient ByContact(OutgoingRecipientRole role, ContactId contact, string? contactAddress = null)

Parameters

role OutgoingRecipientRole

The header to name them in.

contact ContactId

The contact to address.

contactAddress string

Which of their addresses to use, or null for the one they prefer.

Returns

NamedRecipient

The recipient the author named.

Exceptions

ArgumentException

Thrown when contactAddress is supplied blank.

ArgumentOutOfRangeException

Thrown when role is not a declared role.