class Mail::Message

def encoded

so it is able to be directly sent to an email server.
all headers, attachments, etc. This is an encoded email in US-ASCII,
Outputs an encoded string representation of the mail message including
def encoded
  ready_to_send!
  buffer = header.encoded
  buffer << "\r\n"
  buffer << body.encoded(content_transfer_encoding)
  buffer
end