我应该如何获取和处理(Exchange)电子邮件附件?
我需要从电子邮件附件中获取 zip 文件,将其解压缩并将其复制到某处。
我应该采取什么方法呢?
我目前正在谷歌上搜索“Exchange API”和“处理电子邮件附件”等内容,希望以前有人做过这样的事情。
环境将是Windows 和Exchange 2003,所有编码最好采用C#。
I need to get a zip file from an email attachment, unzip it and copy it somewhere.
What would be the way I should go about it?
I'm currently googling around things like 'Exchange API' and 'processing email attachments' and kind of hoping this kind of thing has been done before.
The environment will be Windows and Exchange 2003, and any coding will preferably be in C#.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
前段时间我不得不这样做,最好的方法是使用WEBDAV。 每个邮件项目都可以像 URL 一样被引用。
如果您查看有关 WEBDAV 的博客文章 ,它应该为您指明方向。
I had to do this some time ago, and the best way is to use WEBDAV. Every mail item can be referenced like a URL.
If you check out this blog post on WEBDAV, it should show you the way.
我最终使用 救赎 我遇到了一些问题,因此提出了相关问题,但最终还是解决了。
您确实需要安装 Outlook 客户端,并且您需要对您尝试访问的任何邮箱具有完整邮箱权限(不仅仅是读取权限)。
这个问题,Read MS Exchange email in C#问了几个人几周后我也得到了一些很好的答案。
I did this in the end using Redemption I had a couple of problems, hence the linked question but got there in the end.
You do need to have the Outlook client installed, and you need full mailbox rights (not just read) on whatever mailbox you are trying to access.
This question, Read MS Exchange email in C# asked a couple of weeks after mine got some good answers as well.
假设您想在 .NET 中执行此操作,您将必须编写或购买 POP3 或 IMAP4 类库才能与 Exchange 服务器通信。
下面是来自 CodeProject 的 POP3 客户端示例:
http://www.codeproject.com/KB/IP/despop3client.aspx
Assuming you want to do this in .NET you will either have to write or purchase a POP3 or IMAP4 class library to communicate with the Exchange server.
Here is one example of a POP3 client from CodeProject:
http://www.codeproject.com/KB/IP/despop3client.aspx