set_type(type [header [requote]]sets the type used in the 'content-typeheader type is string specifying the typesuch as 'text/plainor 'multipart/mixedheader specifies an alternative header other than the default 'content-typeheader requote quotes the value of any parameters already attached to the header by defaultthis is true set_unixfrom(unixfromsets the text of the unix-style 'from line unixfrom is string containing the complete text including the 'fromtext this text is only output if the unixfrom parameter of as_string(is set to true rather than creating raw message objects and building them up from scratch each timethere are collection of prebuilt message objects corresponding to different types of content these message objects are especially useful for creating multipart mime messages for instanceyou would create new message and attach different parts using the attach(method of message each of these objects is defined in different submodulewhich is noted in each description mimeapplication(data [subtype [encoder [**params]]]defined in email mime application creates message containing application data data is byte string containing the raw data subtype specifies the data subtype and is 'octet-streamby default encoder is an optional encoding function from the email encoders subpackage by defaultdata is encoded as base params represents optional keyword arguments and values that will be added to the 'content-typeheader of the message mimeaudio(data [subtype [encoder [**params]]]defined in email mime audio creates message containing audio data data is byte string containing the raw binary audio data subtype specifies the type of the data and is string such as 'mpegor 'wavif no subtype is providedthe audio type will be guessed by looking at the data using the sndhdr module encoder and params have the same meaning as for mimeapplication mimeimage(data [subtype [encoder [**params]]]defined in email mime image creates message containing image data data is byte string containing the raw image data subtype specifies the image type and is string such as 'jpgor 'pngif no subtype is providedthe type will be guessed using function in the imghdr module encoder and params have the same meaning as for mimeapplication mimemessage(msg [subtype]defined in email mime message creates new non-multipart mime message msg is message object containing the initial payload of the message subtype is the type of the message and defaults to 'rfc mimemultipart([subtype [boundary [subparts [**params]]]]defined in email mime multipart creates new mime multipart message subtype specifies the optional subtype to be added to the 'content-typemultipart/subtypeheader by defaultsubtype is 'mixedboundary is string that specifies the boundary separator used to make each message subpart if set to none lib fl ff