Topic Path: Symbol Reference > Classes > TIdMessageEncoderInfo Class > TIdMessageEncoderInfo Methods > InitializeHeaders Method
TIdMessageEncoderInfo.InitializeHeaders Method

Specifies a method for generating RFC 2822 headers for a message.

procedure InitializeHeaders(
    AMsg: TIdMessage
); virtual;
Message instance to be updated with RFC message headers. 

InitializeHeaders is a virtual procedure in TIdMessageEncoderInfo that specifies a method for generating RFC 2822 message headers for an instance of TIdMessage

Descendant classes, like TIdMessageEncoderInfoMIME, TIdMessageEncoderInfoUUE, and TIdMessageEncoderInfoXXE should override the method to provide support for generating message headers specific to the given encoder type.

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