Maria.Shahid:
Hi,
Sample Code:MapiMessage msg = MapiMessage.FromFile(dataDir + "NYCDOELeadResultsNotificationK843.msg");
I tried this, with MapiMessage instead of MailMessage.The "count" increased to the correct number, however the third attachment found, instead of being the second spreadsheet (attached to the .msg in question are 2 .xlsx, 1 .pdf), was the .jpg in the email signature.
MapiMessage.FromFile has the same issue of failing to retrieve all attachments as MailMessage.Load.