Fix bug #573916. Sender and recipients reversed in email example.

This commit is contained in:
Raymond Hettinger 2002-06-26 07:51:32 +00:00
parent 711cad769a
commit ca0383d3a3

View file

@ -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 = ''