Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8308444 commit 1dbee94Copy full SHA for 1dbee94
1 file changed
Doc/library/email.policy.rst
@@ -534,6 +534,14 @@ more closely to the RFCs relevant to their domains.
534
Like ``default``, but with ``linesep`` set to ``\r\n``, which is RFC
535
compliant.
536
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
545
.. data:: HTTP
546
547
Suitable for serializing headers with for use in HTTP traffic. Like
0 commit comments