Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(112328)

Delta Between Two Patch Sets: Lib/smtplib.py

Issue 19689: ssl.create_default_context()
Left Patch Set: Created 5 years, 3 months ago
Right Patch Set: Created 5 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/poplib.py ('k') | Lib/ssl.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 #! /usr/bin/env python3 1 #! /usr/bin/env python3
2 2
3 '''SMTP/ESMTP client class. 3 '''SMTP/ESMTP client class.
4 4
5 This should follow RFC 821 (SMTP), RFC 1869 (ESMTP), RFC 2554 (SMTP 5 This should follow RFC 821 (SMTP), RFC 1869 (ESMTP), RFC 2554 (SMTP
6 Authentication) and RFC 2487 (Secure SMTP over TLS). 6 Authentication) and RFC 2487 (Secure SMTP over TLS).
7 7
8 Notes: 8 Notes:
9 9
10 Please remember, when doing ESMTP, that the names of the SMTP service 10 Please remember, when doing ESMTP, that the names of the SMTP service
(...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 line = sys.stdin.readline() 965 line = sys.stdin.readline()
966 if not line: 966 if not line:
967 break 967 break
968 msg = msg + line 968 msg = msg + line
969 print("Message length is %d" % len(msg)) 969 print("Message length is %d" % len(msg))
970 970
971 server = SMTP('localhost') 971 server = SMTP('localhost')
972 server.set_debuglevel(1) 972 server.set_debuglevel(1)
973 server.sendmail(fromaddr, toaddrs, msg) 973 server.sendmail(fromaddr, toaddrs, msg)
974 server.quit() 974 server.quit()
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+