In this section, we will learn about the POP3 protocol and explore the poplib library and how to work with emails with POP3 in Python 3.7.
Learning the POP3 protocol and retrieving emails with poplib
Understanding the POP3 protocol
POP3 is a protocol that allows email clients to obtain email messages that are stored on a remote server. It is an application-level protocol in the OSI model. The stored email messages can be downloaded and read by the local computer. The POP3 protocol can be used to download these messages from the email server.
POP3 is designed to receive emails, not to send them; it allows users with intermittent or very slow connections (such as modem connections) to download their emails while they have a...