Hey Guys,
I was playing around with modifying the message via my Zimlet javascript. My goal was to append some additional html or text onto the message that would normally be hidden to the user (so they can't modify it). Here's the code that I used:
var videoHolder = new ZmMimePart();
videoHolder.setContentType(ZmMimeTable.TEXT_HTML);
videoHolder.setContent("<h3>This would be my video rider</h3>");
var videoText = new ZmMimePart();
videoText.setContentType(ZmMimeTable.TEXT_PLAIN);
videoText.setContent("Plain Text Video Description");
composerView.addMimePart(videoText);
composerView.addMimePart(videoHolder);
The code worked, in a way. When I triggered this code and sent off the message, the original message was 'lost'. All that would be visible was the extra mime part that I added (either one depending on my client's view preference, so both html and plain types were visible in the same message).
Did I do something wrong or is there a bug in the code? My assumption is that extra mime parts would not override the original message. BTW, when I say original message I mean the message that the user was composing, not one that they would be replying to.
Cheers,
Marty