Indy 9 | Content | Index | Reference

TIdSMTPReceiveMode
Unit: IdSMTPServer
Indicates the mechanism used for processing incoming mail data.

    TIdSMTPReceiveMode = (rmRaw, rmMessage, rmMessageParsed);

Unit
IdSMTPServer
Description
TIdSMTPReceiveMode is an enumerated type that identifies the mechanism to be used on the server to handle data received in the incoming mail buffer. TIdSMTPReceiveMode can contain the following values with their associated meanings:

- rmRaw - Data is captured from the client connection as a 7-bit raw data stream. The raw data stream is provided to an event handler to allow processing, and the daa stream is freed on completion of the event handler.

- rmMessage - Data is captured from the client connection and stored in a TIdMessage instance. The message instance is given a value in XServer that identifies the current server. The message instance is provided to an event handler to allow additional processing, and freed on completion of the event handler.

- rmMessageParsed - Data is captured from the client connection and stored in a TIdMessage instance, like rmMessage. rmMessageParsed adds processing of message headers to determine which recipients are Blind Carbon-Copy recipients. The message instance is provided to an event handler to allow additional processing, and freed on completion of the event handler.

TIdSMTPReceiveMode is the type used to represent the TIdSMTPServer.ReceiveMode property, and determines which event handler to use for mail data processing in TIdSMTPServer: OnReceiveRaw, OnReceiveMessage, or OnReceiveMessageParsed.

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