Click to See Complete Forum and Search --> : Access to Mailbox in Exchange Server with MAPI using ASP


ASP
August 19th, 1999, 01:00 PM
Dear Friends:
I'm working in an active server project and I'm trying to access a mailboxes folders in Exchange Server with the object "MAPI.Session" using VBScript.
I got create the session and make a logon and displaying the current user name,
but when i'm tryging to get access to the current user folders like Inbox or Outbox this returns the follow error message:

Collaboration Data Objects error '00000505'

You do not have permission to log on. [Microsoft Exchange Server Information Store - [MAPI_E_FAILONEPROVIDER(8004011D)]]

------------

I use the following code segment :

...

Set objSession = Server.CreateObject("MAPI.Session")
bstrProfileInfo = "MyServer" + vbLf + "MailUser"
objSession.Logon "","",False, True, 0, True, bstrProfileInfo
Set objUser = objSession.CurrentUser
Response.Write objUser 'This instruction is successfull executed
Set objMessage = objSession.Outbox.Messages.Add 'The error message occurs in this line

...

I think the problem could be related with access permissions or Exchange Server configuration ...

Thanks in advance,

Please reply to e-mail address: baseball@ua.pt