TlsSMTPHandler

Description

class lab_utils.custom_logging.TlsSMTPHandler(mailhost, fromaddr, toaddrs, subject, credentials=None, secure=None, timeout=5.0)[source]

SMTPHandler with TLS support. Based upon this gist.

Attributes

TlsSMTPHandler.fromaddr

Sender address (inherited).

TlsSMTPHandler.mailhost

Mail provider (inherited).

TlsSMTPHandler.mailport

Mail port (inherited).

TlsSMTPHandler.password

Login password (inherited).

TlsSMTPHandler.toaddrs

Recipients addresses (inherited).

TlsSMTPHandler.username

Login username (inherited).

Methods

TlsSMTPHandler.emit

Emits a record.