We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c08f40 commit 748c958Copy full SHA for 748c958
Doc/library/email.message.rst
@@ -612,6 +612,13 @@ message objects.
612
*content_manager* is not specified, use the ``content_manager`` specified
613
by the current :mod:`~email.policy`.
614
615
+ Note that this method will append a newline character to the end of the
616
+ content, if it wasn't passed already. For example, the following are equivalent ::
617
+
618
+ msg = EmailMessage()
619
+ msg.set_content("hello")
620
+ msg.set_content("hello\n")
621
622
623
.. method:: make_related(boundary=None)
624
0 commit comments