module wittgenstein_messaging.channels.email
Classes
-
EmailChannel — Email messaging channel adapter (SMTP/SES).
wittgenstein_messaging.channels.email.EmailChannel
class EmailChannel(smtp_server: Optional[str] = None, port: int = DEFAULT_SMTP_PORT, username: Optional[str] = None, password: Optional[str] = None, use_tls: bool = True)
Email messaging channel adapter (SMTP/SES).
Methods
-
send — Send an email message over SMTP via aiosmtplib.
wittgenstein_messaging.channels.email.EmailChannel.send
async method EmailChannel.send(self, message: Message) → bool
Send an email message over SMTP via aiosmtplib.
Any aiosmtplib exception propagates to the caller (MessageRouter), which is responsible for converting it into a FAILED status.