]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-36261: Improve example of the preamble field in email docs (GH-14751)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 14 Jul 2019 07:53:15 +0000 (00:53 -0700)
committerGitHub <noreply@github.com>
Sun, 14 Jul 2019 07:53:15 +0000 (00:53 -0700)
(cherry picked from commit 8efade91b12a13102a09a3856179021e579da5e9)

Co-authored-by: Carl Bordum Hansen <carl@bordum.dk>
Doc/includes/email-mime.py

index c610242f11f843f5c5916628fa55142a929262cc..6af2be0b08a48da3dc0508eecf6f20ef5df1e103 100644 (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.