We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Reading MSG Journal Attachment


I am running into a problem where I am trying to read an MSG file that has a Journal attachment. Is there a way in Aspose to handle the attachment as a Journal rather than as an email? I have attached an example for your convenience.

Thank you

MSG with Journal Attachment.zip (744.5 KB)


We have checked the attached MSG file and saved the attachment to disc which is saved as Journal item to the disc by the API. Following code sample was used to read and save the attachment to disc. Please let us know if you are facing some issue with this along with your sample code you are trying at your end.

Sample Code

MapiMessage mapi = MapiMessage.FromFile("164427\\MSG with Journal Attachment.msg");

MapiAttachment att = mapi.Attachments[0];

if (att.ObjectData.IsOutlookMessage)
    MemoryStream ms = new MemoryStream();


    ms.Position = 0;

    MapiMessage attMsg = MapiMessage.FromStream(ms);

1 Like

This exactly what I was looking for. I was trying to use MailMessage. Thank you @kashif.iqbal