I have a web-app which I use which expects a specific boundary string like (“company mime boundary”).
I did not find a way to override the default behavior of MimeMultipart, when I do
Multipart mp = new MimeMultipart();
A unique boundary string is always created by the constructor and I want to override this behavior to have my own boundary string, but unable to do so as I did not find any API.
Even if I set it in content-type, it does not work and creates a unique boundary string always as the MimeMultipart is creating a default one.
mimeMsg.setHeader("Content-Type","multipart/mixed;boundary="company mime boundary");
Can anyone please suggest/help me on this.
How to override this default behavior ?