Is there a way to find out that an email contains an attachment if we upload an email with an attachment to sharepoint?
using web.GetFile(GuidOfTheEmail)...
or any other method?
Thanks.
Is there a way to find out that an email contains an attachment if we upload an email with an attachment to sharepoint?
using web.GetFile(GuidOfTheEmail)...
or any other method?
Thanks.
You could use the Outlook VBA objects to parse through the msg file and get that information, or there is a pure .NET solution from Aspose which also has the ability to parse msg files, although the Aspose library will cost money. I have had some experience with the Aspose libraries and have found them very easy to use and very efficient, but if you're looking for a free solution, you're probably going to need to do some COM interop work.