Email doesn't correctly formed

Giganews Newsgroups
Subject: Email doesn't correctly formed
Posted by:  sunrizer (sunriz…
Date: Mon, 28 Jan 2008

When I setup my parts of email like in example:
  TIdMessage (multipart/related; type="multipart/alternative")
      TIdText (multipart/alternative), ParentPart -1
        TIdText (text/plain), ParentPart 0
        TIdText (text/html), ParentPart 0
      TIdAttachment (image/*) ParentPart -1, ContentID 12345
      TIdAttachment (image/*) ParentPart -1, ContentID 56789
      and so on...
In email they have another order - child-part has  boundary of MainPart instead parentpart, here the example:
Content-Type: multipart/related; boundary="POsjQR=_eDPjzrR1x4owSQxQoLgtNximbl"
MIME-Version: 1.0
Date: Mon, 28 Jan 2008 19:08:07 +0200
Organization: Hell
Message-Id: <E1JJXSp-00076E-…>

Content-Type: multipart/alternative;


Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Sun ! Mwa-ha-ha !=20

Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<META NAME=3D"GENERATOR" Content=3D"Microsoft DHTML Editing Control">
<P align=3Dcenter>Sun ! Mwa-ha-ha ! </P>


<P align=3Dcenter><IMG alt=3D"" hspace=3D0 src=3D"cid:015522113@280120=
align=3Dbaseline border=3D0></P>

Content-Type: image/jpeg;
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
Content-ID: <015522113@28012008-2880>

What i doing wrong ?