on_command Event
Reports a command sent to the server.
Syntax
class SMTPClientCommandEventParams(object): @property def cmd() -> str: ... # In class SMTPClient: @property def on_command() -> Callable[[SMTPClientCommandEventParams], None]: ... @on_command.setter def on_command(event_hook: Callable[[SMTPClientCommandEventParams], None]) -> None: ...
Remarks
The class fires this event whenever it sends an SMTP command to the server. Use on_command_reply to track the server's responses.