LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Outlook send e-mail on your behalf warning message

When running the outlookrep2000 sample included in CVI 7.1, a Microsoft Office Outlook message occurs when an email from the outlookrep2000 application is sent. I've enclosed a screen shot of the message. Is there a property in the Email ActiveX object that can be accessed to eliminate the occurrence of this message?
 
Thank you in advance for your time and response.
 
Thank you,
Jim
0 Kudos
Message 1 of 5
(9,982 Views)
You have to configure Outlook, so that it allows the execution of scripts and COM functions without this dialog. The settings should be somewhere in the extras-->options-->security-->security zones menu (I hope i got it right, I have the german version and I am not sure how the menu-entries are called in english).
0 Kudos
Message 2 of 5
(9,957 Views)

Andre,

 Thank you for your response. While your suggestion is the correct way to resolve this problem, unfortunately I am blocked out form changing the OutLook security settings on my PC. However, I did find a work around. There is a freeware application called "ClickYes" that when installed on your PC will automatically click the "Yes" button of the OutLook security message pop-up window. This application can be either run as a service on your PC (from the task bar), executed in a command line fashion, or has an API that allows access to the application from within your own application. The website for this application is: http://www.contextmagic.com/express-clickyes/.

 Here's an example of how I implemented this application into my email application (using CVI). I've simplified the example by eliminating the error checking code:

// Enable ClickYes.exe. This exe will automatically click the YES
// button of the OutLook security window, which appears when an
// email is sent.
LaunchExecutable("ClickYes.exe");
 
//Send New Mail Item
Outlook__MailItemSend(messageHandle, NULL);

// Disable ClickYes.exe
system("ClickYes.exe -stop");

Regards,

Jim

0 Kudos
Message 3 of 5
(9,927 Views)

I was afraid "clickyes" might not work on Outlook 2007 and I would have to give up the easy way out.  I have been using "click yes" for over a year.  It is very reliable.

 

 

0 Kudos
Message 4 of 5
(6,841 Views)

Have you looked at using the POP3 or SMTP capability in the CVI Internet library?

 

There are two example programs that ship with CVI 9.0.1:

pop3clnt.cws and sendmail.cws.

 

I don't know if they shipped with older versions.

 

Your program will need the ability to log on directly to your email server.  Since you are restricted from making security changes to Outlook, this might be a problem for you as well.

0 Kudos
Message 5 of 5
(6,791 Views)