Accessing Outlook thro Windows Service

malathyr

New member
Joined
Dec 26, 2003
Messages
1
Hi,

I want to develop an application (Windows service ) which access the emails on outlook of the users and pharse those emails and process it.

1. I ran into problems finding out the current user when running as local service. So, I have run as user and when installing I have to input the user name and then only, it will work. But, then, any other user try to access the machine it wont work. - Ist problem

2. When I try to execute the following code

Instantiate an Outlook Application object.
myOlApp = New Outlook.Application
Get the collection of selected objects.
objSelection = myOlApp.ActiveExplorer.Selection

the second line gives an object not found error. I guess probably this is because of the first problem. I dont know. The same statements run without any problem If I run this statement as part of Windows form application.

I would apprecate any one giving any pointers on how to solve this or in general how to run windows services as local services and get the user name who has logged in.

Apperciate any help

Thank you

Ramesh Krishnan
 
Back
Top