TlsSMTPHandler.emit

TlsSMTPHandler.emit(record)[source]

Emits a record. Opens a TLS SMTP connection using the smtplib library and sends an EmailMessage.