poplib
The poplib module provides a low-level client-side connection to a POP3 mail server. POP3 is described in RFC 1725, which may be a useful reference when using this module.
Two objects are defined by this module:
POP3(host [, port])
Creates a connection to a POP3 server at host. port is an optional port number and defaults to 110.
POP3_SSL(host [, port [, keyfile [, certfile]]])
Creates a secure connection to a POP3 server at host. port is an optional port number and defaults to 995. keyfile and certfile specify PEM-formatted private key and certificate files for client authentication if required.
An instance, p, of POP3 or POP3_SSL supports the following methods:
p.apop(user, secret)
Logs in to the POP3 server using APOP authentication. ...
Get Python: Essential Reference, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.