O'Reilly logo

Foundations of Python Network Programming: The comprehensive guide to building network applications with Python, Second Edition by John Goerzen, Brandon Rhodes

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

Chapter 13. SMTP

As we outlined at the beginning of the previous chapter, the actual movement of e-mail between systems is accomplished through SMTP: the "Simple Mail Transport Protocol." It was first defined in 1982 in RFC 821; the most recent RFC defining it is 5321. It typically serves in two roles:

  • When a user types an e-mail message on a laptop or desktop machine, the e-mail client uses SMTP to submit the e-mail to a real server that can send it along to its destination.

  • E-mail servers themselves use SMTP to deliver messages, sending them across the Internet to the server in charge of the recipient e-mail address's domain (the part of the e-mail address after the @ sign).

There are several differences between how SMTP is used for submission ...

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