]> granicus.if.org Git - python/commitdiff
Fix bug #573916. Sender and recipients reversed in email example.
authorRaymond Hettinger <python@rcn.com>
Wed, 26 Jun 2002 07:51:32 +0000 (07:51 +0000)
committerRaymond Hettinger <python@rcn.com>
Wed, 26 Jun 2002 07:51:32 +0000 (07:51 +0000)
Doc/lib/email.tex

index a66c8bca66b94fa91e23369f54b6198efcecbd0a..5ba0ceaea2524406dd5f6ba7a92efaccacc6c9ba 100644 (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 = ''