Athena::MIME::Message
Provides a low-level API for creating an email.
See Creating Raw Email Message for more information.
Constructors
new(headers : AMIME::Header::Collection | Nil = nil, body : AMIME::Part::Abstract | Nil = nil)
SourceInstance methods
body=(body : AMIME::Part::Abstract | Nil)
Represents the AMIME::Parts that comprise this message.
ensure_validity!
Asserts that this message is in a valid state to be sent, raising an AMIME::Exception::Logic error if not.
headers=(headers : AMIME::Header::Collection)
Represents the AMIME::Headers a part of this message.
prepared_headers
Returns a cloned AMIME::Header::Collection consisting of a final representation of the headers associated with this message.
I.e. Ensures the message's headers include the required ones.