RolfSnijders
Programmer
Subject: automatic process to send faxes/email through Outlook 2000.
Hello DotNetter,
We are building an OutlookControlApplication (VisualStudio.NET 2002 v.7.0; C# WindowsApplication) that runs on a dedicated server (W2K) with an Outlook 2000 Client running too.
This program 'OCA' reads a TXT-file coming from a mainframe.
OCA then parses/generates emails and faxes from it.
These faxes/emails are deposited by OCA in Outlook 2000 Outbox.
C# Example code:
...
private Outlook.Application oApp;
private Outlook._NameSpace oNameSpace;
private Outlook.MAPIFolder oOutboxFolder;
... etc.
oNameSpace= oApp.GetNamespace("MAPI"
oNameSpace.Logon("","",false,true);
... etc.
Outlook._MailItem oMailItem = (Outlook._MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem);
... etc.
But when doing so, Outlook Client shows a Popup with the following message:
==
A program is trying to automatically send e-mail on your behalf.
Do you want to allow this?
If this is unexpected, it may be a virus and you should choose NO.
==
This Popup window needs a manual action (mouseclick on YES).
This is, of course, a showstopper as we need to automate the process of dispatching email and faxes without user-interference.
So my questions is:
How do we suppress or avoid this Popup window, so as to automate the fax/email traffic?
Thanking you in advance for a serious answer
Regards,
Rolf
Hello DotNetter,
We are building an OutlookControlApplication (VisualStudio.NET 2002 v.7.0; C# WindowsApplication) that runs on a dedicated server (W2K) with an Outlook 2000 Client running too.
This program 'OCA' reads a TXT-file coming from a mainframe.
OCA then parses/generates emails and faxes from it.
These faxes/emails are deposited by OCA in Outlook 2000 Outbox.
C# Example code:
...
private Outlook.Application oApp;
private Outlook._NameSpace oNameSpace;
private Outlook.MAPIFolder oOutboxFolder;
... etc.
oNameSpace= oApp.GetNamespace("MAPI"
oNameSpace.Logon("","",false,true);
... etc.
Outlook._MailItem oMailItem = (Outlook._MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem);
... etc.
But when doing so, Outlook Client shows a Popup with the following message:
==
A program is trying to automatically send e-mail on your behalf.
Do you want to allow this?
If this is unexpected, it may be a virus and you should choose NO.
==
This Popup window needs a manual action (mouseclick on YES).
This is, of course, a showstopper as we need to automate the process of dispatching email and faxes without user-interference.
So my questions is:
How do we suppress or avoid this Popup window, so as to automate the fax/email traffic?
Thanking you in advance for a serious answer
Regards,
Rolf