Add Headers to the Part
Add the headers to the part using insertHeader() as shown below:
 
multipartMessage.insertHeader(mixed);
multipartMessage.insertHeader(version);
multipartMessage.insertHeader(from);
Remember that a multipart must contain a Content-Type header with a multipart media type, and that every MIME message must contain a MIME-Version header.