Problem in reading mails in MAPI mail system.

G

Guest

Hi,

We have a Windows Service application developed in Delphi 5.0 which reads
Outlook(2003) mailbox using idsMail ActiveX Component (6.07).

Service Application reads a message from Outlook,process it and update the
message content in a database and reply back a message to sender, that a
message is updated in DB.

In MAPI mail system, Service application does not read messages in
Outlook(2003).
It stops while loading message headers.

We tried reading mails in Outlook using Delphi Windows Forms Exe. Everytime
while reading a message it prompts "A program is trying to access email
addresses you have stored in Outlook. Do you want to allow this?". But the
dialog is not displayed in Service application and think this dialog box
stops processing the Service application to read messages.

Can anyone suggest how to resolve this issue?

Thanks in advance,
Vimal
 
G

Guest

You've encountered one of the major reasons why Outlook is not suitable to
automate from a service. See http://www.outlookcode.com/d/sec.htm for general
solutions for the security prompts. The best solution for your scenario might
be to use Extended MAPI, which can be programmed with Delphi.
 

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