Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB email app as NT service

Status
Not open for further replies.

Finhead

MIS
Dec 5, 2000
1
US
My programmer wrote me a VB app that sends an email through the windows messaging system (Outlook Express 5) to an SMTP server. Works great when run from the desktop.

When run as an NT Service (instsrv, srvany) I don't see the sent messages in Outlook Express.

The email profile was created while logged onto the server with the domainx/administrator id. The identities folder for the email profile is under the winnt\profiles\administrator directory.

The service logs on using the same domainx\administrator id. The email gets sent and an identities folder with same name as the identities folder above gets created under the winnt\administrator.000 directory. I can copy the sent items.pbx created to the winnt\profiles\administrator identity folder and view sent items. When the program is run from the desktop all mail stuff is saved in winnt\profiles\administrator identities folder.

Why does a new identities folder(with same name) get created under the administrator.000 profile? How can I either have the sent mail saved to the winnt\profiles\administrator directory or get Outlook to open to the winnt\profils\administrator.000 directory?

I tried to have the service login with the local administrator id, same problem but then it didn't actually send email or create sent items.dbx file.
 
a service can have either access to the network or access to the user interface, not both. You will either be able to send the messages or see the messages, but not both at the same time. Check the .doc file for servany in the nt resource kit. It has info about this. David Moore
dm7941@sbc.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top