Link to home
Start Free TrialLog in
Avatar of GJCook
GJCook

asked on

How to add additional exchange mailboxes to outlook through code

How can I add an additional exchange mailbox (NOT a pst folder) to the outlook folder list through code?  If you are interested, my reasons for wanting to so this are set out below:

I am developing a Com add in to help my company deal with project emails.  Until now project email has always gone to an individual’s mailbox.  This makes project management difficult as the project mail gets split across several mailboxes and users have not got permission to view team members’ mailboxes (contentious issue!).

So what we have done is adopted project email accounts and devised a system whereby all email relating to a particular project get routed to the correct project account (based on simple criteria the user controls).  All project members have the relevant project mailboxes added to their outlook profile (manually throught tools - services).

But very few of our users understand how to add a project mailbox to their outlook folder list and as a result the com add in needs support from the IT department (continuously adding and removing project mailboxes as team members change!).
ASKER CERTIFIED SOLUTION
Avatar of Neo_mvps
Neo_mvps

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GJCook
GJCook

ASKER

Always nice when these things work first time!  Thank you very much.
Don't suppose you know where I can find a remove mailbox function do you?
I couldn't find an exact example, but maybe one these two samples will help you with IProfAdmin's DeleteProvider call.


http://support.microsoft.com/default.aspx?scid=kb;en-us;172556
http://support.microsoft.com/default.aspx?scid=kb;en-us;228736