We help IT Professionals succeed at work.
Get Started

Microsoft Exchange - Automatically download attachments

1 Endorsement
Last Modified: 2013-11-25
Dear Sirs,

I would like to ask for some help regarding Microsoft Outlook 2007/Exchange and downloading attachments automatically from one particular mail box.

As for today this mail box recieve e-mails with files on a hourly or daily basis, and we have to manually download them to the correct file server location.

I already have a macro in Outlook doing parts of this for me, but I would like to have a service or scheduled task to do this instantly or for instance 9.00 AM every day. My macro does not check the senders address. It just downloads the attachment to a predefined location. I have attached my macro that I found on some site.

I hope to find a solution where we don't need to start Microsoft Outlook to run this, but something that download the attachments from the mail box to a file server location based on the sender of the e-mail.

For instance you have the following folder structure:

- \CompanyA
- \CompanyB

When we recieve an e-mail from post@companya.com the attachment will be downloaded from the exchange server to X:\CompanyA. Either instantly or by schedule once a day. And when we recieve e-mails from CompanyB it will be sent to X:\CompanyB. When this is done the e-mails should be moved to a folder in Outlook called Done/Finished/Completed, etc.

Please give me some directions, hint, code snippets, etc. I would have a solution where we are able to make changes to the code and/or options.
Watch Question
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE