18.1.11. email: Examples — Python v2.7.3 documentation
email: Examples¶
Here are a few examples of how to use the email package to read, write, and send simple email messages, as well as more complex MIME messages.
First, let’s see how to create and send a simple text message: