Foundations of Python Network Programming
241 Chapter 13 SMTP As outlined at the beginning of Chapter 12, the actual movement of e-mail between systems is accomplished th ...
Chapter 13 ■ SMtp 242 the SMtp prOtOCOL purpose: deliver e-mail to a server Standard: rFC 2821 runs atop: tCp or tLS port number ...
Chapter 13 ■ SMtp 243 But programmers are clever people, and they came up with a series of solutions to these problems. First, n ...
Chapter 13 ■ SMtp 244 not through FTP; they read message boards, rather than connecting to the Usenet—but it is also obviating t ...
Chapter 13 ■ SMtp 245 Second, SMTP is used between Internet e-mail servers as they move e-mail from its origin to its destinatio ...
Chapter 13 ■ SMtp 246 Sending E-Mail Before sharing the nitty-gritty details of the SMTP protocol, a warning is in order: if you ...
Chapter 13 ■ SMtp 247 This mechanism also helps support e-mailing lists, so that an e-mail whose To line says
[email protected]
...
Chapter 13 ■ SMtp 248 Because each server tends to add its Received header to the top of the e-mail message, this saves time and ...
Chapter 13 ■ SMtp 249 connection = smtplib.SMTP(server) connection.sendmail(fromaddr, toaddrs, message) connection.quit() s = '' ...
Chapter 13 ■ SMtp 250 Listing 13-2. A More Cautious SMTP Client !/usr/bin/env python3 Foundations of Python Network Programming, ...
Chapter 13 ■ SMtp 251 reply: b'250 HELP\r\n' reply: retcode (250); Msg: b'guinness\nSIZE 33554432\nHELP' send: 'mail FROM:sender ...
Chapter 13 ■ SMtp 252 Getting Information from EHLO Sometimes it is nice to know what kind of messages a remote SMTP server will ...
Chapter 13 ■ SMtp 253 try: connection = smtplib.SMTP(server) report_on_message_size(connection, fromaddr, toaddrs, message) exce ...
Chapter 13 ■ SMtp 254 ■ Caution the same caution as before applies here. the fact that the first SMtp server accepts the message ...
Chapter 13 ■ SMtp 255 Because only a minority of e-mail servers on the Internet today supports TLS, an e-mail program should not ...
Chapter 13 ■ SMtp 256 def send_message_securely(connection, fromaddr, toaddrs, message): code = connection.ehlo()[0] uses_esmtp ...
Chapter 13 ■ SMtp 257 Listing 13-6. Authenticating over SMTP !/usr/bin/env python3 Foundations of Python Network Programming, Th ...
Chapter 13 ■ SMtp 258 Most outgoing e-mail servers on the Internet do not support authentication. If you are using a server that ...
259 Chapter 14 POP POP, the Post Office Protocol, is a simple protocol for downloading e-mail from a server. It is typically use ...
Chapter 14 ■ pOp 260 Connecting and Authenticating POP supports several authentication methods. The two most common are basic us ...
«
8
9
10
11
12
13
14
15
16
17
»
Free download pdf