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: Omission in docs for smtplib.SMTP.sendmail()
Type: Stage:
Components: Documentation Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, georg.brandl, kjohnson
Priority: normal Keywords:

Created on 2005-06-09 12:32 by kjohnson, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg25514 - (view) Author: Kent Johnson (kjohnson) * Date: 2005-06-09 12:32
In Library Reference 11.12.1 SMTP Objects, the
description of the to_addrs parameter to
SMTP.sendmail() is, "a list of RFC 822 to-address strings".

In fact sendmail() also allows a single string to be
passed as to_addrs. The comment in smtplib.py says,
"to_addrs: A list of addresses to send this mail to.  A
barestring will be treated as a list with 1 address."

I suggest the Library Reference be changed to say, "a
list of RFC 822 to-address strings or a single
to-address string"
msg25515 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-06-25 18:25
Logged In: YES 
user_id=1188172

Fixed by accepting patch #1227442.
History
Date User Action Args
2022-04-11 14:56:11adminsetgithub: 42067
2005-06-09 12:32:16kjohnsoncreate