O'Reilly logo

Python: Essential Reference, Third Edition by David Beazley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required