POP3_SSL() is the secure version of POP3(). This class takes additional parameters, such as keyfile and certfile, which are used for supplying the SSL certificate files, namely the private key and certificate chain file. Writing for a POP3 client is also very straightforward. To do this, instantiate a mailbox object by initializing the POP3() or POP3_SSL() classes. Then, invoke the user() and pass_() methods to login to the server by using the following command:
mailbox = poplib.POP3_SSL("POP3_SERVER", "SERVER_PORT")mailbox.user('username')mailbox.pass_('password')