Skip to main content

Module message

Module message 

Source
Expand description

Message bodies, attachments, headers, builders, and outbound validation. Provider-independent message bodies, attachments, headers, and validation.

MessageBuilder constructs both inbound-shaped Message values and validated OutboundMessage values. Wire-specific MIME encoding remains in email-message-wire.

Structs§

Attachment
A MIME attachment and its presentation metadata.
AttachmentReference
An unresolved external attachment body reference.
Envelope
SMTP envelope addresses.
Header
A single message header line.
Message
Parsed message content and headers.
MessageBuilder
Builder for Message.
OutboundMessage
A Message that has passed outbound delivery validation.

Enums§

AttachmentBody
Inline bytes or an unresolved external attachment reference.
Body
Message body payload.
Disposition
How a recipient’s mail client should present an attachment, per RFC 2183.
HeaderValidationError
Errors returned when constructing a Header.
MessageValidationError
Reasons a Message failed Message::validate_basic (and therefore cannot be promoted into an OutboundMessage).