If I send an Email width my current Indy solution I can only choose between or Multipart / alternative or Multipart / Mixed
I would like to use the both combined in an Email.
I have a email with plain text and html text and an attachment.
Looking at the raw source of an gmail it should have the following structure.
MIME-Version: 1.0
Received: by 2002:a2e:12dd:0:0:0:0:0 with HTTP; Wed, 30 May 2018 05:31:31 -0700 (PDT)
Date: Wed, 30 May 2018 14:31:31 +0200
Delivered-To: xxxxxxx@gmail.com
Message-ID: <CA+q8OGccoGuocHNL6hU-Lqt9Hixxxxxxx@mail.gmail.com>
Subject: fgfgf
From: Test123 Test123 <xxxxxx@gmail.com>
To: Test123 Test123 <xxxxxx@gmail.com>
Content-Type: multipart/mixed; boundary="000000000000d9c184056d6b8736"
--000000000000d9c184056d6b8736
Content-Type: multipart/alternative; boundary="000000000000d9c181056d6b8734"
--000000000000d9c181056d6b8734
Content-Type: text/plain; charset="UTF-8"
gjhgjfjj
--000000000000d9c181056d6b8734
Content-Type: text/html; charset="UTF-8"
<div dir="ltr">gjhgjfjj</div>
--000000000000d9c181056d6b8734--
--000000000000d9c184056d6b8736
Content-Type: image/png; name="scanicoon.png"
Content-Disposition: attachment; filename="scanicoon.png"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_jht3film0
--000000000000d9c184056d6b8736--
----------------------------------------------------------------------------------------------------
As you can see, google creates two boundary codes.
And the Alternative part is nested in the mixed part.
How can I accomplish this with Indy code?
My current solution can only create one boundary code.
I did see that the class MimeBoundary exists.