Internet Direct (Indy) Version 9.0.1 Beta
TOnReceiveMessage
Event type for incoming mail in a TIdMessage object instance.

TOnReceiveMessage = procedure (ASender: TIdCommand; var AMsg: TIdMessage; RCPT: TIdEMailAddressList) of object;
Description
TOnReceiveMessage specifies an event type signalled to a TIdSMTPServer when a TIdMessage instance is constructed for incoming mail data.

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.