Indy 9
TOnReceiveMessage
Unit: IdSMTPServer
Event type for incoming mail in a TIdMessage object instance.
TOnReceiveMessage = procedure (ASender: TIdCommand; var AMsg: TIdMessage; RCPT: TIdEMailAddressList; var CustomError: string) of object;
Unit
IdSMTPServer
Parameters
AMsg
Message instance containing the incoming mail data.
ASender
Command generated the event notification.
RCPT
List of Recipient email addresses.
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.


Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.