Skip to content

class Athena::MIME::DraftEmail
inherits Athena::MIME::Email #

Represent an un-sent AMIME::Email message.

draft_email = AMIME::DraftEmail
  .new
  .to("[email protected]")
  .subject("Important Notification")
  .text("Lorem ipsum...")

# ...

Constructors#

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

Methods#

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