Book Image

Learning Python Network Programming

By : Dr. M. O. Faruque Sarker, Samuel B Washington, Sam Washington
Book Image

Learning Python Network Programming

By: Dr. M. O. Faruque Sarker, Samuel B Washington, Sam Washington

Overview of this book

Table of Contents (17 chapters)
Learning Python Network Programming
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 4. Engaging with E-mails

E-mail is one of the most popular ways of digital communication. Python has a rich number of built-in libraries for dealing with e-mails. In this chapter, we will learn how to use Python to compose, send, and retrieve e-mails. The following topics will be covered in this chapter:

  • Sending e-mails with SMTP through the smtplib library

  • Securing e-mails transport with TLS

  • Retrieving e-mails by using POP3 with poplib

  • Retrieving e-mails by using IMAP with imapclient

  • Manipulating e-mails on the server with IMAP

  • Sending e-mails with the help of the logging module