How can I set start attribute in the content-type for mime multipart/related message?
To be more precise, I want to know how I can set the start attribute for the root attachment in the below example taken from https://www.rfc-editor.org/rfc/rfc6362:
--OUTER-BOUNDARY
Content-type: multipart/related; boundary="INNER-BOUNDARY";
start="<root.attachment>"; type="application/xml"
--INNER-BOUNDARY
Content-type: application/xml
Content-ID: <root.attachment>
[XML DOCUMENT]
--INNER-BOUNDARY
Content-type: application/pdf
Content-ID: <2nd.attachment>
[PDF DOCUMENT]
--INNER-BOUNDARY--
--OUTER-BOUNDARY
I am not able to find it in the javax.mail api. Please help.
I’ve been struggling with that recently, the code below is the best I could come up with (actually nothing else worked for me):
There’s probably a better way to handle this task, however I am not able to find one.