BeforeReceiveAttachment Event
Marks the start of receiving an attachment.
Syntax
type TBeforeReceiveAttachmentEvent = procedure ( Sender: TObject ) of Object;
property OnBeforeReceiveAttachment: TBeforeReceiveAttachmentEvent read FOnBeforeReceiveAttachment write FOnBeforeReceiveAttachment;
Remarks
This event fires for every new attachment being received from the service.
Tune up OutputAttachmentBytes, OutputAttachmentFile or OutputAttachmentStream properties inside the event handler to indicate where the attachment content should be saved.