![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
I ran into a problem that most users don't have the CDO plug-in.
So now what I want is instead of each user running the code and using the CurrentUser.ID, I want one administrator to run the code and be able to determine the Exchange server of a given user. Eg. an email comes in from Joe Bloe. Run code to return the server that Joe Bloe belongs to. The objsession.logon parameters asks for the username and the exchange server - so I'm in a catch22 situation. It's the server name I'm trying to determine! Any ideas? Thx, J. Dmitry Streblechenko wrote: It uses the default profile name (whatever that happens to be). Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool wrote in message oups.com... Hi Dmitry, I managed to find another code snippet, tried it, and it worked! However I don't entirely understand the logon parameters. I don't specify a user profile, so what is it logging on as? The code: Set objSession = CreateObject("MAPI.Session") objSession.Logon "", "", False, False, 0 Thx, J. |
#2
|
|||
|
|||
![]()
Use the same EX server name as the one the admin uses. If the mailbox is
physically located on a different server, MAPI is smart enough to redirect. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool wrote in message oups.com... I ran into a problem that most users don't have the CDO plug-in. So now what I want is instead of each user running the code and using the CurrentUser.ID, I want one administrator to run the code and be able to determine the Exchange server of a given user. Eg. an email comes in from Joe Bloe. Run code to return the server that Joe Bloe belongs to. The objsession.logon parameters asks for the username and the exchange server - so I'm in a catch22 situation. It's the server name I'm trying to determine! Any ideas? Thx, J. Dmitry Streblechenko wrote: It uses the default profile name (whatever that happens to be). Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool wrote in message oups.com... Hi Dmitry, I managed to find another code snippet, tried it, and it worked! However I don't entirely understand the logon parameters. I don't specify a user profile, so what is it logging on as? The code: Set objSession = CreateObject("MAPI.Session") objSession.Logon "", "", False, False, 0 Thx, J. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
WHAT IS A MICROSOFT EXCHANGE SERVER | lender lady | Outlook - Calandaring | 1 | March 4th 06 02:41 AM |
exchange server ooa | aps05 | Outlook - Installation | 8 | February 10th 06 11:03 PM |
Migrating to Exchange Server | Mass Joe | Outlook - General Queries | 5 | February 7th 06 04:31 PM |
Moving from one Exchange Server to another... | Dave | Outlook - Installation | 1 | January 28th 06 05:57 AM |
cant connect to exchange server | Clyde | Outlook - General Queries | 1 | January 20th 06 11:51 PM |