Skip to Content
Python: Essential Reference, Third Edition
book

Python: Essential Reference, Third Edition

by David Beazley
February 2006
Intermediate to advanced content levelIntermediate to advanced
648 pages
14h 53m
English
Sams
Content preview from Python: Essential Reference, Third Edition

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

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.
Start your free trial

You might also like

Python: Essential Reference

Python: Essential Reference

David M. Beazley

Publisher Resources

ISBN: 0672328623Purchase book