Hi,
We are using ASPOSE.Email to save html mail content in .msg format. In some case when we download and open the file in Outlook it is opening in Edit Mode rather then in read only.
Sample Code that we have is as below:-
MailMessage message = new MailMessage();
message.setTo(to_MailAddressCollection(outboundEmail.getTo()));
message.setHtmlBody(outboundEmail.getBody());
message.setSubject(outboundEmail.getSubject());
message.setCC(to_MailAddressCollection(outboundEmail.getCc()));
MapiMessage outlookMsg = MapiMessage.fromMailMessage(mailMessage);
outlookMsg.save(response.getOutputStream());
We are using 19.12 version. I have attached the same file that was generated for reference.
MSG_FILE_Not_In_ReadOnly_Mode.png (42.2 KB)
Help is pretty much appreciated.
With Regards,
Sai Krishna Potluri