Chapter 13. Email
Email is one of the oldest forms of digital communication, but it is still one of the most popular. Python’s standard library includes modules for sending, receiving, and storing email messages.
smtplib communicates with a mail server to deliver a message. smtpd can be used to create a custom mail server, and it provides classes useful for debugging email transmission in other applications.
imaplib uses the IMAP protocol to manipulate messages stored on a server. It provides a low-level API for IMAP clients and can query, retrieve, move, and delete messages.
Local message archives can be created and modified with mailbox using several standard formats, including the popular mbox and Maildir formats used by many email client ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access