Skip to content

Update email.message.rst #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Doc/library/email.contentmanager.rst
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,13 @@ Currently the email package provides only one concrete content manager,
(distinguished from strings by having a ``name`` attribute), add the
headers to *msg*.

Note that this method will append a newline character to the end of strings,
if it wasn't passed already. For example, the following are equivalent ::

msg = EmailMessage()
msg.set_content("hello")
msg.set_content("hello\n")


.. rubric:: Footnotes

Expand Down
7 changes: 0 additions & 7 deletions Doc/library/email.message.rst
Original file line number Diff line number Diff line change
Expand Up @@ -612,13 +612,6 @@ message objects.
*content_manager* is not specified, use the ``content_manager`` specified
by the current :mod:`~email.policy`.

Note that this method will append a newline character to the end of the
content, if it wasn't passed already. For example, the following are equivalent ::

msg = EmailMessage()
msg.set_content("hello")
msg.set_content("hello\n")


.. method:: make_related(boundary=None)

Expand Down