September 2026
1051 pages
35h 4m
English
Now that we’ve used smtplib to explain how to send email through an SMTP server, in this section we’ll describe the poplib module of the standard library. This module implements the Post Office Protocol version 3 (POP3) protocol. POP3 is a protocol used to view and retrieve emails stored on a POP3 server. The POP3 protocol thus competes with IMAP4, whose use with imaplib will be described in the next section.
Table 35.2 lists the most important POP3 commands and their meanings. The commands are in the same order in which they’re used in a usual POP3 session.
|
Command |
Description |
|---|---|
|
USER |
Transmits the user name for authentication on the server |
|
PASS |
Transmits the password for authentication on the server |
Read now
Unlock full access