Class
smtplib.SMTP

This class manages a connection to an SMTP or ESMTP server. SMTP Objects: SMTP objects have the following attributes: helo_resp This is the message given by the server in response to the most recent HELO command.

ehlo_resp This is the message given by the server in response to the most recent EHLO command. This is usually multiline.

does_esmtp This is a True value after you do an EHLO command, if the server supports ESMTP.

esmtp_features This is a dictionary, which, if the server supports ESMTP, will after you do an EHLO command, contain the names of the SMTP service extensions this server supports, and their parameters (if any).

Note, all extension names are mapped to lower case in the dictionary.

See each method's docstrings for details. In general, there is a method of the same name to perform each SMTP command. There is also a method called sendmail that will do an entire mail transaction.

Base classes

There are no base classes.

Implemented Interfaces

There are no implemented interfaces.

Attributes/Properties

Methods

Known Subclasses

There are no known subclasses.