Table of Contents

Method Create

Namespace
MailFathom.Domain.Delivery
Assembly
MailFathom.Domain.dll

Create(EmailAddress, OutgoingRecipientRole, ContactId?)

Names one recipient of an outgoing email.

public static OutgoingRecipient Create(EmailAddress address, OutgoingRecipientRole role, ContactId? contact = null)

Parameters

address EmailAddress

The address the message is offered to.

role OutgoingRecipientRole

The header the composed message names them in.

contact ContactId?

The contact the address was resolved from, or null when the author supplied it.

Returns

OutgoingRecipient

The recipient those name.

Exceptions

ArgumentException

Thrown when address names no mailbox or is longer than MaximumAddressLength.

ArgumentOutOfRangeException

Thrown when role is not a declared role.