email.errors: Exception and Defect classes — Python 3.14.7 documentation

docs.python.org

Tin mới

email.policy: Policy Objects

email.headerregistry: Custom Header Objects

Python Module Index

3.14.7 Documentation

The Python Standard Library

Internet Data Handling

email — An email and MIME handling package

email.parser.Parser

This is the base class for exceptions raised by the Parser class. It is derived from MessageError. This class is also used internally by the parser used by headerregistry.

email.message.EmailMessage.set_boundary

email.header.Header

email.message.Message.attach

Raised if the attach() method is called on an instance of a class derived from MIMENonMultipart (e.g. MIMEImage). MultipartConversionError multiply inherits from MessageError and the built-in TypeError.

email.mime.nonmultipart.MIMENonMultipart

Raised if the attach() method is called on an instance of a class derived from MIMENonMultipart (e.g. MIMEImage). MultipartConversionError multiply inherits from MessageError and the built-in TypeError.

email.generator: Generate flat text email messages from a message structure.

Raised when an error occurs when the generator outputs headers.