Table of Contents

Method Create

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

Create(MailAccountId, OutgoingEmailRequester, IReadOnlyList<OutgoingRecipient>, ZonedInstant?)

Asks for one message to be submitted through an account and delivered to the recipients it names.

public static OutgoingEmailRequest Create(MailAccountId accountId, OutgoingEmailRequester requester, IReadOnlyList<OutgoingRecipient> recipients, ZonedInstant? dueAt = null)

Parameters

accountId MailAccountId

The account the message is sent as.

requester OutgoingEmailRequester

The authored act asking.

recipients IReadOnlyList<OutgoingRecipient>

The people the message is offered to.

dueAt ZonedInstant

The time the message is to leave at, or null for as soon as it can.

Returns

OutgoingEmailRequest

The request to write down.

Exceptions

ArgumentNullException

Thrown when requester or recipients is null.

ArgumentException

Thrown when recipients is empty, holds more than MaximumRecipientCount entries, or names one mailbox more than once.