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
accountIdMailAccountIdThe account the message is sent as, which decides the
Fromaddress.requesterOutgoingEmailRequesterThe authored act asking, which is what makes the same request twice one delivery.
authoredAuthoredEmailWhat the author wrote.
capabilitiesMailDeliveryCapabilitiesWhat 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, orcapabilitiesis 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.