You don't have appropriate permission to perform this operation

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
 
K

Ken Slovak - [MVP - Outlook]

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?
 
K

KZ

I don't know. I have to write a test, send to customer and wait for results.

Thank you for your help
Krystyna
 
Joined
Jan 31, 2006
Messages
1
Reaction score
0
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.
 

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