简体   繁体   中英

How should I go about getting and processing an (Exchange) email attachment?

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#.

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.

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM