class Athena::MIME::Message
inherits Reference
#
Provides a low-level API for creating an email.
See Creating Raw Email Message for more information.
Direct known subclasses
Athena::MIME::Email
Constructors#
.new(headers : AMIME::Header::Collection | Nil = nil, body : AMIME::Part::Abstract | Nil = nil)
#
Methods#
#body : AMIME::Part::Abstract | ::Nil
#
Represents the AMIME::Part
s that comprise this message.
#body=(body : AMIME::Part::Abstract | Nil)
#
Represents the AMIME::Part
s that comprise this message.
#ensure_validity! : Nil
#
Asserts that this message is in a valid state to be sent, raising an AMIME::Exception::Logic
error if not.
#generate_message_id : String
#
Returns a string that uniquely represents this message.
#headers : AMIME::Header::Collection
#
Represents the AMIME::Header
s a part of this message.
#headers=(headers : AMIME::Header::Collection)
#
Represents the AMIME::Header
s a part of this message.
#prepared_headers : AMIME::Header::Collection
#
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.