Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

Programatically Get Attachment from .msg fiile in Document Library

$
0
0

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


Viewing all articles
Browse latest Browse all 17574

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>