on_end_transfer Event
Fired when the message text completes transferring.
Syntax
class SMTPEndTransferEventParams(object): @property def direction() -> int: ... # In class SMTP: @property def on_end_transfer() -> Callable[[SMTPEndTransferEventParams], None]: ... @on_end_transfer.setter def on_end_transfer(event_hook: Callable[[SMTPEndTransferEventParams], None]) -> None: ...
Remarks
If message_text is not empty, the on_end_transfer event is fired when the message_text finishes transferring from the local host to the mail_server. If message_text is empty, the event is not fired.
If a file is attached to the message_text via the attached_file property, then on_end_transfer fires again when the file finishes transferring. Please go to the description of the attached_file property for more information.
The Direction parameter shows whether the client (0) or the server (1) is sending the data.