set_param(param, value, header='Content-Type', requote=True, charset=None, language='', replace=False) Set a parameter in the
class email.message.EmailMessage(policy=default) If policy is specified (it must be an instance of a
get_body(preferencelist=('related', 'html', 'plain')) Return the MIME part that is the best candidate to be the “body” of the
email.utils.parseaddr(address) Parse address – which should be the value of some address-containing field such as
set_type(type, header='Content-Type', requote=True) Set the main type and subtype for the Content-Type
class email.parser.BytesParser(_class=email.message.Message, *, policy=policy.compat32) This class is exactly parallel to Parser
is_attachment() Return True if there is a Content-Disposition header and its (case
__eq__(other) This method allows you to compare two Charset instances for equality.
values() Return an iterator over representations of all messages if called as itervalues() or __iter__()
binascii.hexlify(data) Return the hexadecimal representation of the binary data. Every byte of data is converted
Page 17 of 44