Topic Path: Pending > TIdSMTPServer.OnReceiveRaw
ContentsIndexHome
PreviousUpNext
TIdSMTPServer.OnReceiveRaw

Event handler signalled for incoming mail in a TMemoryStream.

OnReceiveRaw is a TOnReceiveRaw event handler property that represents the event handler signalled to handle incoming mail from the command action handler for the SMTP DATA command. 

OnReceiveRaw allows the SMTP server to process RFC message data read using a TStream when ReceiveMode is rmRaw. 

The DATA command action handler reads data from the threaded client connection using Capture to store message data prior to signalling the event handler. 

Applications must assign a procedure to the OnReceiveRaw event handler to allow processing of the message data or email addresses in the recipient list for the client connection. If OnReceiveRaw is unassigned, an EIdTCPServerError exception will be raised. 

OnReceiveRaw must fully process the stream containing the message headers and message body, since the stream will be freed prior to exiting from the DATA command action handler.

TOnReceiveRaw EIdTCPServerError

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.