When trying to read the .msg file in .Net using the dll Microsoft.Office.Interop.Outlook
Version 15.0.0.0 facing the issue in reading large recipients.
Scenarios:
- If the .msg file contains less recipients e.g less than 300 then value in
To
property shows actual recipients. - If the .msg file has more than 300 recipients then
To
property ofMailItem
object is gettingnull
shows no blank.
Does the library have any limitations for the recipients to read or anything I am missing to handle more recipients?
Microsoft.Office.Interop.Outlook.Application app = new Microsoft.Office.Interop.Outlook.Application();
Microsoft.Office.Interop.Outlook.Application();
var item = app.Session.OpenSharedItem(msgfilepath) as Microsoft.Office.Interop.Outlook.MailItem;
string message = item.Body
string recipients = item.To
//This To property gets null in case file has large recipients list.