class

Athena::MIME::Message

Inherits Reference < Object

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)
Source

Instance methods

body

Represents the AMIME::Parts that comprise this message.

Source
body=(body : AMIME::Part::Abstract | Nil)

Represents the AMIME::Parts that comprise this message.

Source
ensure_validity!

Asserts that this message is in a valid state to be sent, raising an AMIME::Exception::Logic error if not.

Source
generate_message_id

Returns a string that uniquely represents this message.

Source
headers

Represents the AMIME::Headers a part of this message.

Source
headers=(headers : AMIME::Header::Collection)

Represents the AMIME::Headers a part of this message.

Source
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.

Source