Also, more importantly, is put some error handling into your code. If the user *doesn't* click ok, and denies the program access to outlook, some line of you rcode will fail, probably the send() function call. Make sure it pops up a message that says "You must allow outlook to send the email message!" or something similar if it fails.
Main Topics
Browse All Topics





by: Frosty555Posted on 2008-01-21 at 10:52:43ID: 20708396
You cannot get rid of this message using any standard procedures, since it is a security warning from Outlook to prevent viruses from exploiting it. It will be difficult, and anything you code that DOES work, will most likely be circumvented in future versions on Outlook.
/controls/ vb_shell/a rticle.php / c3053/
/apilist/k eyb_event. shtml /apilist/m ouse_event .shtml
My suggestion if you really want to get rid of it, is try and catch when the window appears, and make the program emulate clicking the OK button.
Look at this sample for an example of getting the active window:
http://www.codeguru.com/vb
And look at this sample for an example of emulating the keyboard and mouse from vb6:
http://allapi.mentalis.org
http://allapi.mentalis.org