Class ComposedOutgoingEmail
- Namespace
- MailFathom.Application.Mail.Delivery.Composition
- Assembly
- MailFathom.Application.dll
Carries one composed message: what to write down, what to transmit, and the identity it carries.
public sealed record ComposedOutgoingEmail : IEquatable<ComposedOutgoingEmail>
- Inheritance
-
ComposedOutgoingEmail
- Implements
- Inherited Members
Remarks
The request and the bytes are two views of one composition and are produced together for that reason. Every recipient the request names is named in the MIME as well, except the blind ones — the transmitted headers do not name those, which is what makes them blind, and the envelope offers them exactly as it offers anybody else.
The identity is here rather than only inside the bytes because it is what a reader would otherwise have to parse the message to learn. Nothing above this contract sees a MIME type, so nothing above it can parse the payload.
Constructors
- ComposedOutgoingEmail(OutgoingEmailRequest, InternetMessageId, ReadOnlyMemory<byte>)
Carries one composed message: what to write down, what to transmit, and the identity it carries.
Properties
- MessageId
The identity minted for this message, which every attempt of this send carries.
- RawMime
The RFC 822 bytes to store and transmit, built once and never rebuilt.
- Request
The send to record, whose recipients are the envelope the transmission offers.