class

Athena::MIME::DraftEmail

Inherits Athena::MIME::Email < Athena::MIME::Message < Reference < Object

Represent an un-sent AMIME::Email message.

draft_email = AMIME::DraftEmail
  .new
  .to("you@example.com")
  .subject("Important Notification")
  .text("Lorem ipsum...")

# ...

Constructors

new(headers : AMIME::Header::Collection | Nil = nil, body : AMIME::Part::Abstract | Nil = nil)
Source

Instance methods

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