Indy 9
|
TOnReceiveMessage = procedure (ASender: TIdCommand; var AMsg: TIdMessage; RCPT: TIdEMailAddressList; var CustomError: string) of object;
TOnReceiveMessage events are signalled by the command instance used to respond to the SMTP DATA command when the ReceiveMode contains rmMessage or rmMessageParsed.
TOnReceiveMessage is the type used for the TIdSMTPServer.OnReceiveMessage and TIdSMTPServer.OnReceiveMessageParsed event handlers. Applications must assign a procedure to the corresponding event handlers to allow a respond to the event notification.