Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Outlook in a system service
Message
De
02/08/2006 13:54:23
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01142315
Message ID:
01142495
Vues:
9
Hi Gerald,

Run your service as the user you want to log onto Outlook: that should work. You still might need Redemption Objects (google) to get past Outlook Security.

You can test it manually (change the logon user and password in the Service).

And for production, you can install the service with sc.exe (google) if you won't mind seeing a DOS window and not getting a return code; or you can use WMI (google WMI create service) to do it without a DOS window.

Hank

>Hi,
>
>I have written a program that checks different data sources like a FTP or a HTTP server for new files regularly. These sources are implemented as plugins to the main program actually.
>The whole thing runs as a system service, i.e. under the system account of windows.
>
>Since it was easy to access outlook via COM as normal user, I'm now trying to create an outlook plugin to check certain mailbox folders for mails with attachments, too.
>The problem is that all outlook profiles are user-dependent (windows registry: current user) I can't access the user's profile.
>
>Did anyone try something similar yet, or does anyone know a solution how to access a different windows-user's mailboxes (no matter if it is exchange/pop3/whatsoever), password given of course?
>
>
>I tried creating a new profile programmatically to connect to an exchange server. Well, it worked, but it wouldn't let me pass the password, so it would always prompt for it. Showing the password dialog is of course impossible when running without UI and it's annoying anyway.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform