diff options
author | Georg Brandl <georg@python.org> | 2009-05-20 18:35:27 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-05-20 18:35:27 (GMT) |
commit | ac2380b58a1bde1b38916c85032bc1647f119346 (patch) | |
tree | 5fff1755b25c46fb0f40f8c014d2a204f5b67bfe /Doc/library | |
parent | 498a9b3491d85eb7d182af746059cd3adb377376 (diff) | |
download | cpython-ac2380b58a1bde1b38916c85032bc1647f119346.zip cpython-ac2380b58a1bde1b38916c85032bc1647f119346.tar.gz cpython-ac2380b58a1bde1b38916c85032bc1647f119346.tar.bz2 |
#6051: refer to email examples for better way to construct email messages.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/email-examples.rst | 2 | ||||
-rw-r--r-- | Doc/library/smtplib.rst | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/email-examples.rst b/Doc/library/email-examples.rst index f606f9b..c1b16da 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 8facc9a..4c1c614 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`. |