PyDocs

Nav

Internet Data Handling

get_content

  • get_content(msg, errors='replace')
Return the payload of the part as either a string (for text parts), an EmailMessage object (for message/rfc822 parts), or a bytes object (for all other non-multipart types). Raise a KeyError if called on a multipart. If the part is a text part and errors is specified, use it as the error handler when decoding the payload to a string. The default error handler is replace.
0 Examples
No examples for email.contentmanager/get_content.
See Also
No see-alsos for email.contentmanager/get_content
0 Notes
No notes for get_content