klyn.logging.handler.SmtpLogHandler.SmtpLogHandler
constructor
public SmtpLogHandler(
session as Session,
from as String,
to as String,
subjectPrefix as String = "[Klyn]",
minimumLevel as LogLevel = LogLevel.ERROR
):
Description

Creates an SMTP alert handler.

Parameters
ParameterDescription
sessionSMTP session.
fromSender mailbox.
toRecipient mailbox.
subjectPrefixSubject prefix.
minimumLevelLowest accepted level.
Example

handler = SmtpLogHandler(session, "app@example.com", "ops@example.com")