Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ca0383d

Browse files
committed
Fix bug #573916. Sender and recipients reversed in email example.
1 parent 711cad7 commit ca0383d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/lib/email.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,8 @@ \subsection{Examples}
481481
# Create the enclosing (outer) message
482482
outer = MIMEBase('multipart', 'mixed')
483483
outer['Subject'] = 'Contents of directory %s' % os.path.abspath(dir)
484-
outer['To'] = sender
485-
outer['From'] = COMMASPACE.join(recips)
484+
outer['To'] = COMMASPACE.join(recips)
485+
outer['From'] = sender
486486
outer.preamble = 'You will not see this in a MIME-aware mail reader.\n'
487487
# To guarantee the message ends with a newline
488488
outer.epilogue = ''

0 commit comments

Comments
 (0)