F
Fred
We have an CTI (Computer Telephony Integration) application accessing the
Outlook inbox in order to extract mail and attachments for agents. We used
to access Outlook through the Outlook Object Model via COM. The thing is
that with Outlook 2003 we do get this security warning telling the user that
an external app is trying to access the inbox. My question is actually how
do we get rid of it, i.e how to change the application so that the user does
not see the warning all the time.
I colleague tried to access Outlook via MAPI/CDO instead of using the COM
objects with great result, is this the right or prefered way to access
Outlook 2003? Is there a glitch or will this work in the future? I assume
the first logon of the session object is the thing that makes it
trustworthy?
Just a small example from Delphi:
uses
MAPI_TLB,CDONTS_TLB
var
objSession: TCDOSession;
procedure TForm1.ButtonIterateClick(Sender: TObject);
var
objItem, objAttachment: variant;
i, j: integer;
ov: OleVariant;
tmpPath, tmpFileName, tmpSubject: string;
begin
objSession.Logon("Profile string");
for i := 1 to objSession.Inbox.Messages.Count do
begin
ov := i;
objItem := objSession.Inbox.Messages.Item[ov];
for j := 1 to objItem.Attachments.Count do
begin
ov := j;
objAttachment := objItem.Attachments.Item[ov];
tmpSubject := objItem.Subject;
...
end;
end;
end;
TIA,
/Fred
Outlook inbox in order to extract mail and attachments for agents. We used
to access Outlook through the Outlook Object Model via COM. The thing is
that with Outlook 2003 we do get this security warning telling the user that
an external app is trying to access the inbox. My question is actually how
do we get rid of it, i.e how to change the application so that the user does
not see the warning all the time.
I colleague tried to access Outlook via MAPI/CDO instead of using the COM
objects with great result, is this the right or prefered way to access
Outlook 2003? Is there a glitch or will this work in the future? I assume
the first logon of the session object is the thing that makes it
trustworthy?
Just a small example from Delphi:
uses
MAPI_TLB,CDONTS_TLB
var
objSession: TCDOSession;
procedure TForm1.ButtonIterateClick(Sender: TObject);
var
objItem, objAttachment: variant;
i, j: integer;
ov: OleVariant;
tmpPath, tmpFileName, tmpSubject: string;
begin
objSession.Logon("Profile string");
for i := 1 to objSession.Inbox.Messages.Count do
begin
ov := i;
objItem := objSession.Inbox.Messages.Item[ov];
for j := 1 to objItem.Attachments.Count do
begin
ov := j;
objAttachment := objItem.Attachments.Item[ov];
tmpSubject := objItem.Subject;
...
end;
end;
end;
TIA,
/Fred