email.generator: Generating MIME documents
email.generator: Generating MIME documents
One of the most common tasks is to generate the flat text of the email message represented by a message object structure. You will need to do this if you want to send your message via the smtplib
module or the nntplib
module, or print the message on the console. Taking a message object structure and producing a flat text document is the job of the Generator
class.
Again, as with the 登录查看完整内容