View Single Post
  #4 (permalink)  
Old October 13th, 2006, 10:42 AM
bjc_world bjc_world is offline
Registered User
 
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I got this working recently in a Java servlet using:

response.setContentType("application/vnd.ms-outlook");
response.setHeader("Content-Disposition", "inline; filename=x.msg");

I don't know that the ContentType actually does much, I think it is the file extension set in Content-Disposition that makes it work.

Note that the email opens in Outlook, not the browser, so the client will need Outlook installed for this to work. I did not find a way to get the browser to display the message directly.

Hope this helps.
Reply With Quote