Table of Contents

Method Compose

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

Compose(MailAccountId, OutgoingEmailRequester, AuthoredEmail, MailDeliveryCapabilities)

Composes one authored message, or refuses it naming the field that stopped it.

AuthoredEmailComposition Compose(MailAccountId accountId, OutgoingEmailRequester requester, AuthoredEmail authored, MailDeliveryCapabilities capabilities)

Parameters

accountId MailAccountId

The account the message is sent as, which decides the From address.

requester OutgoingEmailRequester

The authored act asking, which is what makes the same request twice one delivery.

authored AuthoredEmail

What the author wrote.

capabilities MailDeliveryCapabilities

What the submission server said it will accept, read from the session that will carry the message.

Returns

AuthoredEmailComposition

The composed message, or the refusal that stopped it.

Exceptions

ArgumentNullException

Thrown when requester, authored, or capabilities is null.

ArgumentOutOfRangeException

Thrown when a recipient names a role this system does not declare, which is a boundary that mapped its input wrongly rather than an author who wrote something wrong.