You don't have appropriate permission to perform this operation

  • Thread starter Thread starter KZ
  • Start date Start date
K

KZ

I have a small program (written in VB) to automate sending emails thru
Outlook.
Program works fine everywhere but one office.
At this location Outlook and my program are installed on terminal server.
Users with administrator rights work without any errors,
but other users are getting an error "You don't have appropriate permission
to perform this operation".
At the same time the same users can send emails directly from Outlook
without any problems.
After investigation I found out that:
- My application can create Outlook application object without any problems
Set objOLApp = CreateObject("Outlook.Application")
- the error happens when I try to create email item
Set myItem = objOLApp.CreateItem(olMailItem)

Does anybody know what permissions are missing to perform this operation?

Thanks,
Krystyna
 
I'm not sure about the permissions, but does it work if you get the Inbox
folder and its Items collection and use the Add method to create the new
mail item instead of CreateItem?
 
I don't know. I have to write a test, send to customer and wait for results.

Thank you for your help
Krystyna
 
I have a problem like this. But I couldnt find how to write this code in VB 6.0 . Could you show me an example about the Add method to create the new mail item instead of CreateItem ?

Many thanks.
Mustafa.
 
Back
Top