EWS保存电子邮件附件(ItemAttachment) [英] EWS save email attachment (ItemAttachment)

查看:120
本文介绍了EWS保存电子邮件附件(ItemAttachment)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在使用Exchange Web服务。我尝试保存电子邮件附件,这本身就是一封电子邮件。它不是FileAttachment,而是ItemAttachment。

I'm using Exchange Webservices. I try to save an email attachment which is a email itself. It is not a FileAttachment, but an ItemAttachment.

我们正在运行Exchange 2007.我使用.NET c#

We are running Exchange 2007. I use .NET c#


 foreach (Attachment att in mail.Attachments)

 {

 // Save normal files to disk<br/>
 if (att is FileAttachment) {
 FileAttachment fa = (FileAttachment)att;
 String s = @"..\attachment\" + att.Name;
 fa.Load(s);
 }

 <br/>

 // Save attached EMails to disk<br/>
 if (att is ItemAttachment)
 {
 what to do here?<br/>
 }

推荐答案

 

Hi, 

我很想知道你是否找到了什么

I am interested to know if you found anything


这篇关于EWS保存电子邮件附件(ItemAttachment)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆