How to logon MAPI namespace with profile

J

JC

Hi Ken,

I hope you already read all previous email and understood my problem. We use
outlook object model to logon a special mailbox - Coordinator, then we can
access other user's calendar via delegate. outlook 2000 works fine for us.
When I test outlook 2003, I found when it logon to Coordinator mailbox, it
returns an error -"Permission denied", since there is no way to pass in
userID , password and domain to the logon. I'm trying to find out if there is
a way to passin those info, or if there is a workaround. Dimitry tell me I
should use CDO or extended MAPI to do it. After I read CDOlive sample which
you provide the link, I realized CDO cannot do this. It cannot access other
user's calendar via Coordinator's mailbox. Look like the only way I can go is
trying to find the way to passin the login info during execute

olNameSpace.Logon "GMS Coordinator - DEV", "", False, True

Do you know is there a way?

Thanks!

JC
 
D

Dmitry Streblechenko \(MVP\)

Again, if that mailbox is on another Exchange server in a different domain,
there is nothing you can do, at least not in Outlook.
If you are using CDO, you at least have the option of impersonating that
user in your code (since CDO 1.21 runs inproc)
I have already suggested CDO 1.21, but we got sidetracked into the
discussion of the folder level security, which really has nothing to do
witth this topic.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
K

Ken Slovak - [MVP - Outlook]

You cannot use the Outlook object model for that and you can't work with
NameSpace.Logon in any kind of useful way.

I'd discard the idea of the Coordinator maibox and log dynamically into
whichever mailboxes you need to access using a CDO 1.21 dynamic logon. You
can either use the logon for that mailbox specifically or use a logon that
has owner permissions on those mailboxes.

When I've used CDO code to logon to every mailbox on an Exchange server I've
generally used a logon that has owner permissions on all the mailboxes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top