mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
Fix bug #573916. Sender and recipients reversed in email example.
This commit is contained in:
parent
711cad769a
commit
ca0383d3a3
1 changed files with 2 additions and 2 deletions
|
|
@ -481,8 +481,8 @@ def main():
|
|||
# Create the enclosing (outer) message
|
||||
outer = MIMEBase('multipart', 'mixed')
|
||||
outer['Subject'] = 'Contents of directory %s' % os.path.abspath(dir)
|
||||
outer['To'] = sender
|
||||
outer['From'] = COMMASPACE.join(recips)
|
||||
outer['To'] = COMMASPACE.join(recips)
|
||||
outer['From'] = sender
|
||||
outer.preamble = 'You will not see this in a MIME-aware mail reader.\n'
|
||||
# To guarantee the message ends with a newline
|
||||
outer.epilogue = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue