I have a problem with compiling an email message that will have both text/plain and text/html parts (plus attachments). I realize that I need to have one main multipart/mixed part that will contain a child|embedded multipart/alternative that will hold both plain text and html parts. So, I need two boundaries, one inside the other.
However, it seems doing this is not quite possible (or I am not seeing a way?). I tried overloading the write method:
, the only one virtual I could do something in, I tried implementing the writeMultipart myself (copied from the MailMessage) and to insert the alternative part somewhere before the final closing boundary is written to the stream, but the _parts variable is private and I cannot access it (without recompiling the library, what I don't won't to do) and I don't see any other way of doing this (at least at the moment).
Code: Select all
virtual void write(std::ostream& ostr) const;
So, is there a way to insert the secondary boundary inside the main multipart/mixed boundary? Any help is much appreciated.