Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extract email attachment from Exchange server

Status
Not open for further replies.

jcaulder

Programmer
Apr 22, 2002
241
US
Can anyone provide an example of connecting to an Exchange Server (to a specific account) and extracting email attachments from any unread messages using vb.net 2.0?

We receive Excel attachments daily from vendors that contain scheduling information. Currently, it is a manual process to save each attachment to a directory and rename it with current date.

I am trying to automate this process. I can do it quite easily from the Outlook client, just don't know how to do it directly from Exchange server. Any ideas?

Thanks!

J
 
I've not tried to do this yet. The only thing I can do is maybe point you in a direction. A lot of Email things can be done with the System.Net.Mail namespace (vb2005). You might look there and see if it has anything you can use until someone can give you a better answer.

-I hate Microsoft!
-Forever and always forward.
 
The only thing I could find was that it was very difficult. I created a .NET app that uses Outlook directly and extracts the email attachment, saves them to a folder, then deletes the email.

The down side is that Outlook must always be running but I put it on a server and included it in the startup folder.

Not ideal but it was quick and easy and has solved the problem for now until I can revisit it later.

J
 
I have only worked on lotus from .NEt but after googleing this it looks pretty easy.

Several different methods

There a bank of examples here
____________ signature below ______________
You may get help by means of code here. Just recall what happens to a rat when he eats the cheese off a rat trap while you're Ctrl+C/Ctrl+V'ing that code as your own
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top