What is the Parent Part value

Giganews Newsgroups
Subject: What is the Parent Part value
Posted by:  Grant Brown (gra…@sitedoc.com.au)
Date: Thu, 18 Aug 2005

Hi all,

When I create an attachment to a message that is sent via TIdSMTP what does the ParentPart value do
and what value does one set it to

And do I use a different Parent Part value for each attachment and also the body text section of my
message.

Bit lost here as the help file simply says its an integer but does not explain how to calculate the
required value.

      s := ExtractFileName(AFileName);
        with TIdAttachmentFile.Create(emMessage.MessageParts, AFileName) do
        begin
            ContentID := s;
            ContentType := GetMIMETypeFromFile(AFileName);
            Filename := s;
            ParentPart := -1;
        end;

TIA

Regards
Grant Brown

Replies