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

(cherry picked from commit 8efade91b1)

Co-authored-by: Carl Bordum Hansen <carl@bordum.dk>
This commit is contained in:
Miss Islington (bot) 2019-07-14 00:53:15 -07:00 committed by GitHub
parent b1e4d1b603
commit 262779fb50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ msg['Subject'] = 'Our family reunion'
# 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.