mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +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
|
# Create the enclosing (outer) message
|
||||||
outer = MIMEBase('multipart', 'mixed')
|
outer = MIMEBase('multipart', 'mixed')
|
||||||
outer['Subject'] = 'Contents of directory %s' % os.path.abspath(dir)
|
outer['Subject'] = 'Contents of directory %s' % os.path.abspath(dir)
|
||||||
outer['To'] = sender
|
outer['To'] = COMMASPACE.join(recips)
|
||||||
outer['From'] = COMMASPACE.join(recips)
|
outer['From'] = sender
|
||||||
outer.preamble = 'You will not see this in a MIME-aware mail reader.\n'
|
outer.preamble = 'You will not see this in a MIME-aware mail reader.\n'
|
||||||
# To guarantee the message ends with a newline
|
# To guarantee the message ends with a newline
|
||||||
outer.epilogue = ''
|
outer.epilogue = ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue