diff options
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/email-examples.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/email-examples.rst b/Doc/library/email-examples.rst index c1b16da..32cecf3 100644 --- a/Doc/library/email-examples.rst +++ b/Doc/library/email-examples.rst @@ -11,6 +11,12 @@ First, let's see how to create and send a simple text message: .. literalinclude:: ../includes/email-simple.py +And parsing RFC822 headers can easily be done by the parse(filename) or +parsestr(message_as_string) methods of the Parser() class: + +.. literalinclude:: ../includes/email-headers.py + + Here's an example of how to send a MIME message containing a bunch of family pictures that may be residing in a directory: |