开发者

SharePoint :How to know if an email contains an attachment using web.GetFile(guidOfEmail)

开发者 https://www.devze.com 2023-01-08 01:49 出处:网络
Is there a way to find out that an email contains an attachment if we upload an email with a开发者_如何学JAVAn attachment to sharepoint?

Is there a way to find out that an email contains an attachment if we upload an email with a开发者_如何学JAVAn 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消