7. Topic 4 - Electronic MailΒΆ

Our discussion of electronic mail focuses on generating and sending messages, which seems to be the most likely part of e-mail that we would want to automate in a program. You might write a program where you want to notify users of important information or remind them of something. The tools in Python make this a pretty easy thing to do. We will discuss sending messages using the SMTP protocol as well as generating correctly formated messages. Simple text messages are pretty trivial to compose, but composing messages containing binary attachments using MIME requires special attention.