diff options
author | Georg Brandl <georg@python.org> | 2005-06-25 18:24:03 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2005-06-25 18:24:03 (GMT) |
commit | 9020a21b7c197a1f6479ea672ca9d45f978c7851 (patch) | |
tree | 603df3970c5c3a5d32abca69e47252e1256b3492 /Doc/lib | |
parent | c9371d4a1b64074e48bfe99713970c9a01112f60 (diff) | |
download | cpython-9020a21b7c197a1f6479ea672ca9d45f978c7851.zip cpython-9020a21b7c197a1f6479ea672ca9d45f978c7851.tar.gz cpython-9020a21b7c197a1f6479ea672ca9d45f978c7851.tar.bz2 |
Patch #1227442: smtplib.SMTP.sendmail() accepts a string or list as to_addrs.
Diffstat (limited to 'Doc/lib')
-rw-r--r-- | Doc/lib/libsmtplib.tex | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Doc/lib/libsmtplib.tex b/Doc/lib/libsmtplib.tex index 491f75b..2f87bc4 100644 --- a/Doc/lib/libsmtplib.tex +++ b/Doc/lib/libsmtplib.tex @@ -190,13 +190,14 @@ the \refmodule{socket} module's \function{ssl()} function. \begin{methoddesc}{sendmail}{from_addr, to_addrs, msg\optional{, mail_options, rcpt_options}} Send mail. The required arguments are an \rfc{822} from-address -string, a list of \rfc{822} to-address strings, and a message string. -The caller may pass a list of ESMTP options (such as \samp{8bitmime}) -to be used in \samp{MAIL FROM} commands as \var{mail_options}. ESMTP -options (such as \samp{DSN} commands) that should be used with all -\samp{RCPT} commands can be passed as \var{rcpt_options}. (If you -need to use different ESMTP options to different recipients you have -to use the low-level methods such as \method{mail}, \method{rcpt} and +string, a list of \rfc{822} to-address strings (a bare string will be +treated as a list with 1 address), and a message string. The caller +may pass a list of ESMTP options (such as \samp{8bitmime}) to be used +in \samp{MAIL FROM} commands as \var{mail_options}. ESMTP options +(such as \samp{DSN} commands) that should be used with all \samp{RCPT} +commands can be passed as \var{rcpt_options}. (If you need to use +different ESMTP options to different recipients you have to use the +low-level methods such as \method{mail}, \method{rcpt} and \method{data} to send the message.) \note{The \var{from_addr} and \var{to_addrs} parameters are |