Table of Contents

Method Create

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

Create(MailAccountId, UserId?, 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 account, UserId? author, OutgoingEmailRequester requester, IReadOnlyList<OutgoingRecipient> recipients, ZonedInstant? dueAt = null)

Parameters

account MailAccountId

The account the message is sent as, by its generated identifier.

author UserId?

The user who asked, or null where the deployment's own configuration did.

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.