This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: wrong arguments passed to SMTP.sendmail in example
Type: Stage: resolved
Components: Documentation Versions: Python 3.2, Python 3.3, Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: r.david.murray Nosy List: docs@python, r.david.murray, wendt_se
Priority: normal Keywords:

Created on 2011-06-09 12:21 by wendt_se, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg137960 - (view) Author: Fredrik Wendt (wendt_se) Date: 2011-06-09 12:21
On http://docs.python.org/library/email-examples.html#email-examples the current example (v2.7.1) at the bottom incorrectly calls SMTP.sendmail() with a single recipient e-mail address. It should be a list of addresses.
msg137990 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2011-06-09 15:36
"The required arguments are an RFC 822 from-address string, a list of RFC 822 to-address strings (a bare string will be treated as a list with 1 address)..."
History
Date User Action Args
2022-04-11 14:57:18adminsetgithub: 56502
2011-06-09 15:36:38r.david.murraysetstatus: open -> closed
resolution: not a bug
messages: + msg137990

stage: resolved
2011-06-09 13:14:46eric.araujosetassignee: docs@python -> r.david.murray

nosy: + r.david.murray
versions: + Python 3.2, Python 3.3
2011-06-09 12:21:31wendt_secreate