PyDocs

Nav

Internet Data Handling

Message.as_bytes

email.message

method of Message · Added in 3.4 (source)
  • Message.as_bytes(unixfrom=False, policy=None)
Return the entire formatted message as a bytes object.

Optional 'unixfrom', when true, means include the Unix From_ envelope
header.  'policy' is passed to the BytesGenerator instance used to
serialize the message; if not specified the policy associated with
the message instance is used.
0 Examples
No examples for email.message/Message.as_bytes.
See Also
No see-alsos for email.message/Message.as_bytes
0 Notes
No notes for Message.as_bytes