Not from a java API, but the Outlook object model can do it, i.e. MailItem.SaveAs(msgfilename.msg, olTxt); etc.
Outside that, there are COM libraries that do it too, i.e. http://www.dimastr.com/redemption/
"Partheeus" wrote:
[Quoted Text] > Hi, > > I need to create a ".msg" file, so that some users can click on the message, > and it opens up in MS Outlook. Has anybody successfully done this? > (I#m using the JavaMail APIs) > > Using the writeTo method (ie: message.writeTo(fileOut); ), I was able to > create a file. However, when I try and open it in Outlook, it won't open. I > compared my file to a message that I saved using Outlook, and their msg file > has a ton more stuff. It looks like all of the headers are encrypted. > > If anybody has done this, and could provide some input, that would be > fantastic! > > Thanks.
|