Problem: Using Windows Service to access Outlook to send mail

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

I am using a windows service which accesses Microsoft Outlook. Outlook is
supposed to send an email. This works fine when not run in a windows
service.
I am running the service under my user domain logon.
I am using VB.net and using redemption.dll to bypass the security patch.
This is the line of code that causes the event error
Dim olApp As New Outlook.Application

When I try and use a service the following error occurs.

The description for Event ID (2001) is Source (Microsoft Office 11) cannot
be found. The local computer may not have the necessary registry
information or message DLL file to display messages from a remote computer.
You may be able to use the /AUXSOURCE=flag to retrieve this description; see
Help and Support for details. The following information is part of the
event: Microsoft Office Outlook,.
 
If you just want to send an email from a service , automating outlook is not
the best way todo it.

2 other options are :

WEBDAV to send the email from the exchange server
SMTP

They are others options.

If you dont need to see the item in someones sents items, then SMTP is good,
if you need to see the email in the sent items, WEBDAV is good.

Steve
 
Back
Top