event.handler.smtp¶
SMTP event handler.
Module Contents¶
Classes¶
Event handler that sends events via email using SMTP. |
- class event.handler.smtp.SMTPHandler(subject: str, from_addr: str, to_addr: str, smtp_servers: str | list[str])¶
Bases:
e3.event.EventHandlerEvent handler that sends events via email using SMTP.
- property subject: str¶
Subject.
- classmethod decode_config(config_str: str) dict[str, str | list[str]]¶
Decode configuration string.
- Parameters:
config_str – configuration string
- encode_config() str¶
Encode configuration to string representation.
- send_event(event: e3.event.Event) bool¶
Send an event.
- Parameters:
event – an event
- Returns:
True if the event was sent successfully