bpo-36261: Improve example of the preamble field in email docs (GH-14751)

This commit is contained in:
Carl Bordum Hansen 2019-07-14 09:46:19 +02:00 committed by Steve Dower
parent dffca9e925
commit 8efade91b1

View file

@ -14,7 +14,7 @@
# family = the list of all recipients' email addresses
msg['From'] = me
msg['To'] = ', '.join(family)
msg.preamble = 'Our family reunion'
msg.preamble = 'You will not see this in a MIME-aware mail reader.\n'
# Open the files in binary mode. Use imghdr to figure out the
# MIME subtype for each specific image.