Hi there,
I currently have a document library which contains several folders and some files of type .msg. Some of these .msg files, when opened in Outlook, contain attachments. I am looking to detect if the .msg SPListItem contains any attachments. I am not looking for SPListItem.Attachment as this is the attachment to the list item itself. I am wanting the attachment of the outlook file. Is there any way to do this programmatically? This is my code below:
foreach(SPListItem listitem in list.items)
{
if(listitem.Name.Contains(".msg"))
{
//In here I need to get the Attachment of the email file
}
}
Thanks in advance