mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
#10321: Add support for sending binary DATA and Message objects to smtplib
This commit is contained in:
parent
a563392f92
commit
7dff9e08fb
7 changed files with 202 additions and 13 deletions
|
@ -27,5 +27,5 @@ for file in pngfiles:
|
|||
|
||||
# Send the email via our own SMTP server.
|
||||
s = smtplib.SMTP()
|
||||
s.sendmail(me, family, msg.as_string())
|
||||
s.sendmail(msg)
|
||||
s.quit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue