on_before_send_attachment Event
Marks the start of sending an attachment.
Syntax
class SOAPClientBeforeSendAttachmentEventParams(object): @property def last_attachment() -> bool: ... @last_attachment.setter def last_attachment(value) -> None: ... # In class SOAPClient: @property def on_before_send_attachment() -> Callable[[SOAPClientBeforeSendAttachmentEventParams], None]: ... @on_before_send_attachment.setter def on_before_send_attachment(event_hook: Callable[[SOAPClientBeforeSendAttachmentEventParams], None]) -> None: ...
Remarks
Use either attachment_bytes, attachment_file or attachment_stream properties to pass attachment to the class.
Set LastAttachment parameter to False to indicate that you have more than one attachment to pass.