#6051: refer to email examples for better way to construct email messages.

This commit is contained in:
Georg Brandl 2009-05-20 18:35:27 +00:00
parent 498a9b3491
commit ac2380b58a
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,5 @@
.. _email-examples:
:mod:`email`: Examples
----------------------

View File

@ -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`.