Internet Direct (Indy) Version 9.0.1 Beta
TIdMessage.GenerateHeader
Create a list of headers for the message.

function GenerateHeader: TIdHeaderList;
Returns
TIdHeaderList - Headers generated for the message.

Description
GenerateHeader is a TIdHeaderList function used to create and populate a MIME-encoded list of message headers. The message headers returned by GenerateHeader includes:

For the Content-Type header, GenerateHeader compares the MIME Encoding for the message to the message encoders used for any MessageParts. If a message encoder contains a Charset value, it is appended to ContentType. If Ecoding contains a value other than meMIME, and the message has multipart/related or multipart/alternative message parts, an EIdMessageException will be raised.

GenerateHeader appends all values in ExtraHeaders to the TIdHeaderList return value. The application must free the TIdHeaderList returned by GenerateHeader.