email.mime: Creating email and MIME objects from scratch
email.mime: Creating email and MIME objects from scratch
Source code: Lib/email/mime/
Ordinarily, you get a message object structure by passing a file or some text to a parser, which parses the text and returns the root message object. However you can also build a complete message structure from scratch, or even individual Message
objects by hand. In fact, you can also take an existing structure and add new Message
objects, move them