6.29.5.9 SMTPHandler

Python 2.4

6.29.5.9 SMTPHandler

The SMTPHandler class supports sending logging messages to an email address via SMTP.

Returns a new instance of the SMTPHandler class. The instance is initialized with the from and to addresses and subject line of the email. The toaddrs should be a list of strings without domain names (That's what the mailhost is for). To specify a non-standard SMTP port, use the (host, port) tuple format for the mailhost argument. If you use a string, the standard SMTP port is used.

Formats the record and sends it to the specified addressees.

If you want to specify a subject line which is record-dependent, override this method.

See About this document... for information on suggesting changes.