PyDocs

Nav

Internet Data Handling

EmailMessage.as_bytes

  • EmailMessage.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/EmailMessage.as_bytes.
See Also
No see-alsos for email.message/EmailMessage.as_bytes
0 Notes
No notes for EmailMessage.as_bytes