Kaydet (Commit) ac2380b5 authored tarafından Georg Brandl's avatar Georg Brandl

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

üst 498a9b34
.. _email-examples:
:mod:`email`: Examples :mod:`email`: Examples
---------------------- ----------------------
......
...@@ -380,3 +380,8 @@ example doesn't do any processing of the :rfc:`822` headers. In particular, the ...@@ -380,3 +380,8 @@ example doesn't do any processing of the :rfc:`822` headers. In particular, the
server.sendmail(fromaddr, toaddrs, msg) server.sendmail(fromaddr, toaddrs, msg)
server.quit() 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`.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment