Create Parts
Each part of a multipart is a complete, valid MIME part. Construct MIME parts as described in
Creating a Simple MIME Part.Some multipart types require that the parts contain specific headers. For example, a multipart/related message requires each MIME part the message contains to have either a Content-ID or a Content-Location header. See RFC 2387 for details on the multipart/related content type.