Email doesn't correctly formed

Giganews Newsgroups
Subject: Email doesn't correctly formed
Posted by:  sunrizer (sunriz…@ukr.net)
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-…@relay1.ukrpost.ua>

--POsjQR=_eDPjzrR1x4owSQxQoLgtNximbl
Content-Type: multipart/alternative;
        boundary="XCXOZnB8ZW0lvtOSGLg=_EAmms4yIVCSFP"

--XCXOZnB8ZW0lvtOSGLg=_EAmms4yIVCSFP--

--POsjQR=_eDPjzrR1x4owSQxQoLgtNximbl
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Sun ! Mwa-ha-ha !=20

--POsjQR=_eDPjzrR1x4owSQxQoLgtNximbl
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

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

<HR SIZE=3D1>

<P align=3Dcenter><IMG alt=3D"" hspace=3D0 src=3D"cid:015522113@280120=
08-2880"=20
align=3Dbaseline border=3D0></P>
</BODY>
</HTML>

--POsjQR=_eDPjzrR1x4owSQxQoLgtNximbl
Content-Type: image/jpeg;
        name="pic_59.jpg"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
        filename="pic_59.jpg"
Content-ID: <015522113@28012008-2880>

What i doing wrong ?

Replies