| OLD | NEW |
| 1 :mod:`email.mime`: Creating email and MIME objects from scratch | 1 :mod:`email`: Creating email and MIME objects from scratch |
| 2 --------------------------------------------------------------- | 2 ---------------------------------------------------------- |
| 3 | 3 |
| 4 .. module:: email.mime | 4 .. module:: email.mime |
| 5 :synopsis: Build MIME messages. | 5 :synopsis: Build MIME messages. |
| 6 | 6 |
| 7 | 7 |
| 8 Ordinarily, you get a message object structure by passing a file or some text to | 8 Ordinarily, you get a message object structure by passing a file or some text to |
| 9 a parser, which parses the text and returns the root message object. However | 9 a parser, which parses the text and returns the root message object. However |
| 10 you can also build a complete message structure from scratch, or even individual | 10 you can also build a complete message structure from scratch, or even individual |
| 11 :class:`~email.message.Message` objects by hand. In fact, you can also take an | 11 :class:`~email.message.Message` objects by hand. In fact, you can also take an |
| 12 existing structure and add new :class:`~email.message.Message` objects, move the
m | 12 existing structure and add new :class:`~email.message.Message` objects, move the
m |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 Module: :mod:`email.mime.text` | 180 Module: :mod:`email.mime.text` |
| 181 | 181 |
| 182 A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the | 182 A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the |
| 183 :class:`MIMEText` class is used to create MIME objects of major type | 183 :class:`MIMEText` class is used to create MIME objects of major type |
| 184 :mimetype:`text`. *_text* is the string for the payload. *_subtype* is the | 184 :mimetype:`text`. *_text* is the string for the payload. *_subtype* is the |
| 185 minor type and defaults to :mimetype:`plain`. *_charset* is the character | 185 minor type and defaults to :mimetype:`plain`. *_charset* is the character |
| 186 set of the text and is passed as a parameter to the | 186 set of the text and is passed as a parameter to the |
| 187 :class:`~email.mime.nonmultipart.MIMENonMultipart` constructor; it defaults | 187 :class:`~email.mime.nonmultipart.MIMENonMultipart` constructor; it defaults |
| 188 to ``us-ascii`` if the string contains only ``ascii`` codepoints, and | 188 to ``us-ascii`` if the string contains only ``ascii`` codepoints, and |
| 189 ``utf-8`` otherwise. | 189 ``utf-8`` otherwise. |
| OLD | NEW |