我应该如何获取和处理(Exchange)电子邮件附件?

发布于 2024-07-13 14:56:26 字数 177 浏览 19 评论 0原文

我需要从电子邮件附件中获取 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

一身仙ぐ女味 2024-07-20 14:56:27

前段时间我不得不这样做,最好的方法是使用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.

緦唸λ蓇 2024-07-20 14:56:27

我最终使用 救赎 我遇到了一些问题,因此提出了相关问题,但最终还是解决了。

您确实需要安装 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.

仙气飘飘 2024-07-20 14:56:27

假设您想在 .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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文