Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


MAPI and Outlook Security

 Keywords:  

Question:

I've been attemping to add some email capabilities to my WinBatch script and have run into a problem. When I try to send an email or even just access the address book I get an error that an outside program is attempting to access the address book.

I have perused the Microsoft knowledgebase and the Security patch is definitely the culprit (by design), but I could find no type of way to get around this. Can anyone help me out with some information on how it would be possible to make it work with the Security patch on and not get these messages, or at least point me in the right direction to look?

Answer:

Sorry for the bad news...

There is no option to disable this or any way to work around it, that I am aware of. The only thing I ever found about how to make it go away is to remove the security patch. As you can imagine most network admins would be less than happy with that solution.

Since you are building an in-house solution you could probably use the Postie (email) Extender and simply provide it your SMTP mail server address.

Here is some information Regarding the Outlook security update:

Simple MAPI Design Changes
---------------------------
When Outlook is installed on a computer as the default Simple MAPI client, Outlook processes requests that are made by using Simple MAPI calls. Therefore, when you install the Outlook E-mail Security Update, changes are made to the way that Simple MAPI calls are handled. By default, if you use many Simple MAPI functions you receive a warning message that says a program is trying to either access recipient information or send mail on your behalf.

The following list describes how Outlook responds to Simple MAPI Extedner Functions.

Function			Behavior if handled by Outlook
----------------------------------------------------------------
mFindNext			OK
mLogoff				OK
mLogon				OK
mReadNextMsg		Prompt
mSendMail			Prompt
mSendMailEx			Prompt

Here are some links to Microsoft about the Outlook security update:

OL2000: Developer Information About the Outlook E-mail Security Update http://support.microsoft.com/support/kb/articles/Q262/7/01.ASP

OL2000: Administrator Information About the Outlook E-mail Security Update http://support.microsoft.com/support/kb/articles/Q263/2/97.ASP


Article ID:   W15059