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
accountIdMailAccountIdThe account the message is sent as.
requesterOutgoingEmailRequesterThe authored act asking.
recipientsIReadOnlyList<OutgoingRecipient>The people the message is offered to.
dueAtZonedInstantThe 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
requesterorrecipientsis null.- ArgumentException
Thrown when
recipientsis empty, holds more than MaximumRecipientCount entries, or names one mailbox more than once.