Nesting Message Parts

Giganews Newsgroups
Subject: Nesting Message Parts
Posted by:  Andrew Lockwood (andrew.lockwo…@fsbdial.co.uk)
Date: Fri, 29 Oct 2004

Using Indy 10, how do I create a text/html and an image message part inside
a multipart/related messagepart?

I am OK at creating TIDText and TIDAttachment Parts, but the
'multipart/related' message part which contains the TIDText and
TIDAttachment parts is neither text nor an attachment.  But (in my version
of Indy 10 at least), I cannot create a new MessagePart by
IdMsg.MessageParts.Add, because it has been coded to prevent it.

So I suppose I have two questions.  Firstly, how do I create a messagepart
that is neither text nor an attachment, and secondly, how do I nest
messageparts inside another messagepart?

Any help will be greatly appreciated.

Andrew Lockwood

Replies