From: Georg Brandl Date: Wed, 20 May 2009 18:35:27 +0000 (+0000) Subject: #6051: refer to email examples for better way to construct email messages. X-Git-Tag: v2.7a1~1140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac2380b58a1bde1b38916c85032bc1647f119346;p=thirdparty%2FPython%2Fcpython.git #6051: refer to email examples for better way to construct email messages. --- diff --git a/Doc/library/email-examples.rst b/Doc/library/email-examples.rst index f606f9bb3b52..c1b16da39471 100644 --- a/Doc/library/email-examples.rst +++ b/Doc/library/email-examples.rst @@ -1,3 +1,5 @@ +.. _email-examples: + :mod:`email`: Examples ---------------------- diff --git a/Doc/library/smtplib.rst b/Doc/library/smtplib.rst index 8facc9a6d811..4c1c61407777 100644 --- a/Doc/library/smtplib.rst +++ b/Doc/library/smtplib.rst @@ -380,3 +380,8 @@ example doesn't do any processing of the :rfc:`822` headers. In particular, the server.sendmail(fromaddr, toaddrs, msg) server.quit() +.. note:: + + In general, you will want to use the :mod:`email` package's features to + construct an email message, which you can then convert to a string and send + via :meth:`sendmail`; see :ref:`email-examples`.