summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-09-14 16:08:44 (GMT)
committerGuido van Rossum <guido@python.org>2001-09-14 16:08:44 (GMT)
commitf7fcf5eea62ebaa8e6820806b223c30289212d1a (patch)
tree73a1bb68ce10dcec13c1d7e84963c3d1a1d28b43 /Doc
parent5f5512d246c58aab5a5290a85a8279f4b91021c4 (diff)
downloadcpython-f7fcf5eea62ebaa8e6820806b223c30289212d1a.zip
cpython-f7fcf5eea62ebaa8e6820806b223c30289212d1a.tar.gz
cpython-f7fcf5eea62ebaa8e6820806b223c30289212d1a.tar.bz2
SF patch #461413 (Gerhard Häring): Add STARTTLS feature to smtplib
This patch adds the features from RFC 2487 (Secure SMTP over TLS) to the smtplib module: - A starttls() function - Wrapper classes that simulate enough of sockets and files for smtplib, but really wrap a SSLObject - reset the list of known SMTP extensions at each call of ehlo(). This should have been the case anyway.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libsmtplib.tex8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/lib/libsmtplib.tex b/Doc/lib/libsmtplib.tex
index c5db75f..7ab942b 100644
--- a/Doc/lib/libsmtplib.tex
+++ b/Doc/lib/libsmtplib.tex
@@ -178,6 +178,14 @@ or may raise the following exceptions:
\end{description}
\end{methoddesc}
+\begin{methoddesc}{starttls}{\optional{keyfile, certfile}}
+Put the SMTP connection in TLS (Transport Layer Security) mode. All SMTP
+commands that follow will be encrypted. You should then call ehlo() again.
+
+If \var{keyfile} and \var{certfile} are provided, these are passed to the
+socket module's ssl function.
+\end{methoddesc}
+
\begin{methoddesc}{sendmail}{from_addr, to_addrs, msg\optional{,
mail_options, rcpt_options}}
Send mail. The required arguments are an \rfc{822} from-address