2007/06/17

Outlook security error: A program is trying to send mail using Item.Send

Also see Reinforcing Dialog-Based Security, a paper by two U.S. Air Force Academy professors that demonstrates how to get around the object model guard prompts using VBScript code and the SendKeys method to, in effect, click the buttons on the prompts.

about getConfig. this is a custom function that returns the desired string. in the case of the sub bypass it returns the name of the VB script file.

in example, c:\tmp\bypass_toto.vbs.i like to use configuration files, ie INI style files, so in general, i make a custom getConfig function in order to take the desired parameters saved in some part or file

of course, this getConfig function can be implemented in many ways, or NOT use it at all

that is, in the sub bypass, it can be used directly:

fName = "c:\tmp\bypass_toto.vbs"

with any name or path, because this is only an auxiliar file

the same for the other case, strTo is the destination. this destination can be taken from somewhere with a custom function. also it can be used directly in the code, that is

strTo = "toto@gmail.com"

so getConfig(key) can be written in many ways, acording with the interests of the programmer. getConfig can take the desired key from an INI file, or from the command line, or from a data written in the code, or from a dialog with the user, or from a database, or from ....