Does Outlook web add-in access to .msg file RRS feed

  • Question

  • My previous VSTO can output the .msg file. But can this be achieved in the new web add-in?

    Any code examples?

    I am currently using office.js in the front end and EWS managed API in the back end.

    Saturday, August 25, 2018 12:24 PM

All replies

  • Turns out I need to get the itemID first to get the EmailMessage .

    ExchangeService service = new ExchangeService();
    service.Url = new Uri(ewsUrl);
    service.Credentials = new OAuthCredentials(ewsToken);
    EmailMessage em = EmailMessage.Bind(service, new ItemId(itemID));

    I can use Office.js from the front end to gather those prerequisite info(ewsUrl,ewsTokenitemID)

    At this point I can just load the eml by

    email.Load(new PropertySet(ItemSchema.MimeContent));
    MimeContent mimcon = email.MimeContent;
    Monday, August 27, 2018 6:13 AM