Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1dbee94

Browse files
committed
python#24211: Add missing docs for SMTPUTF8 policy instance.
1 parent 8308444 commit 1dbee94

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Doc/library/email.policy.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,14 @@ more closely to the RFCs relevant to their domains.
534534
Like ``default``, but with ``linesep`` set to ``\r\n``, which is RFC
535535
compliant.
536536

537+
.. data:: SMTPUTF8
538+
539+
The same as ``SMTP`` except that :attr:`~EmailPolicy.utf8` is ``True``.
540+
Useful for serializing messages to a message store without using encoded
541+
words in the headers. Should only be used for SMTP trasmission if the
542+
sender or recipient addresses have non-ASCII characters (the
543+
:meth:`smtplib.SMTP.send_message` method handles this automatically).
544+
537545
.. data:: HTTP
538546

539547
Suitable for serializing headers with for use in HTTP traffic. Like

0 commit comments

Comments
 (0)