[Python-checkins] python/dist/src/Doc/lib libsmtplib.tex, 1.26, 1.27
birkenfeld@users.sourceforge.net
birkenfeld at users.sourceforge.net
Sat Jun 25 20:24:06 CEST 2005
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2706/Doc/lib
Modified Files:
libsmtplib.tex
Log Message:
Patch #1227442: smtplib.SMTP.sendmail() accepts a string or list as to_addrs.
Index: libsmtplib.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libsmtplib.tex,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- libsmtplib.tex 31 Dec 2003 18:37:28 -0000 1.26
+++ libsmtplib.tex 25 Jun 2005 18:24:03 -0000 1.27
@@ -190,13 +190,14 @@
\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
More information about the Python-checkins
mailing list