MS Exchange Calender access
is it possible to connect to a ms exchange server (from a difrent pc) and then view/ modify the calendar of difrent users.
I downloaded thje exchange sdk and I was able to connect to the exchange server and add an appointment to the callendar of every user.
But this app has to run on the server and started by the admin user.
How can I connect to the server with my app from a remote location?
here's the code I used and that works when I run it on the server:
So I figured I need to say where he can find the exchange server.
IMailboxPtr ConnectToMailbox(bstr_t mailTo)
// Create a pointer to the CDOEX Person interface. This will
// be used to determine the URL of the user's inbox.
// Create a pointer to the ADO Connection interface. This
// will be used as the connection to the mailbox.
// Set the provider to the Exchange OLEDB driver.
connection->Provider = "ExOLEDB.DataSource";
// Open the user's mailbox.
iPerson->DataSource->Open(mailTo,variant_t( (IDispatch*)connection, true),
cout << "Datasource open" <<endl;
// Return a pointer to the CDOEX Person interface.
// Display error information. Implement custom error handling here.
cout << endl
<< "ConnectToMailbox threw the following error:"
<< "Make sure the alias exists. Also check to see if you "
<< "are running this application on an Exchange server."
I added this line (found on google)
server is the pc name and "testexchange.test"is the domain
and I've put that string in my host file.
when I enter "http://server.testexchange.test/exchange" in my browser, it works fine and I can logon to my mailbox.
but that doesn't seem to work in my program
Does anyone here has experience with CDO, or knows where I can find on overview of the api (like: _ConnectionPtr, IAppointmentPtr), what memberfunctions they have and what arguments they take etc. All I can find on msdn are examples that need to run on the server (wich won't be possible I think in my case)
any help on CDO's calendar functions, connections, etc is welcome. (even if you're not sure it can help me ;) )