From: Benjamin Peterson Date: Sat, 31 Dec 2011 05:08:09 +0000 (-0600) Subject: indicate msg is an argument X-Git-Tag: v3.2.3rc1~229 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a6c4a10d4e70aa81fcee842f84b71e8c8e7fb142;p=thirdparty%2FPython%2Fcpython.git indicate msg is an argument --- diff --git a/Doc/library/smtplib.rst b/Doc/library/smtplib.rst index 5978a8fe9d6f..3101ab7284d1 100644 --- a/Doc/library/smtplib.rst +++ b/Doc/library/smtplib.rst @@ -281,10 +281,10 @@ An :class:`SMTP` instance has the following methods: envelope used by the transport agents. ``sendmail`` does not modify the message headers in any way. - msg may be a string containing characters in the ASCII range, or a byte + *msg* may be a string containing characters in the ASCII range, or a byte string. A string is encoded to bytes using the ascii codec, and lone ``\r`` - and ``\n`` characters are converted to ``\r\n`` characters. A byte string - is not modified. + and ``\n`` characters are converted to ``\r\n`` characters. A byte string is + not modified. If there has been no previous ``EHLO`` or ``HELO`` command this session, this method tries ESMTP ``EHLO`` first. If the server does ESMTP, message size and