on_error Event
Provides information about errors during SMTP operations.
Syntax
class SMTPClientErrorEventParams(object): @property def error_code() -> int: ... @property def description() -> str: ... # In class SMTPClient: @property def on_error() -> Callable[[SMTPClientErrorEventParams], None]: ... @on_error.setter def on_error(event_hook: Callable[[SMTPClientErrorEventParams], None]) -> None: ...
Remarks
This event is fired in case of exceptional conditions occured during SMTP operations.
ErrorCode contains an error code and Description contains a textual description of the error.