Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
No access to somebody's mailbox
Message
From
11/10/2000 04:38:15
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
No access to somebody's mailbox
Miscellaneous
Thread ID:
00427729
Message ID:
00427729
Views:
82
#DEFINE olFolderInbox 6

When another user gives you NO access to his mailbox and I try to go to his mailbox, how can I intercept the error i get (OLE IDispatch exception code 4096 from Microsoft Outlook). I use the following code:

oOutlook = CREATEOBJECT("Outlook.Application")
oNameSpace = oOutlook.GetNameSpace("MAPI")

oUser = oNameSpace.CreateRecipient("MICHAEL")

oInbox = oNameSpace.GetSharedDefaultFolder(oUser,olFolderInbox)

FOR EACH oInbox IN oInbox.Items && The error occurs here

endfor

Thanks in advance
Next
Reply
Map
View

Click here to load this message in the networking platform