I have a web application that I use that expects a specific boundary line like ("company mime border").
I have not found a way to override the default MimeMultipart behavior when I do
Multipart mp = new MimeMultipart();
A unique boundary line is always created by the constructor, and I want to override this behavior to have my own boundary line, but I could not do it because I did not find any API.
Even if I set it in the content type, it does not work and always creates a unique boundary line, since MimeMultipart creates by default.
mimeMsg.setHeader("Content-Type","multipart/mixed;boundary="company mime boundary");
Can anyone suggest / help me with this.
How to override this default behavior?
source share