R
Reetu
Hi All,
I am using Outlook 2002 talking to Exchange server.
I am getting the following error:
"A program is trying to access e-mail address you have
stored in outlook. Do you want to allow this? If this
is unexpected it may be a virus and you should choose No."
The code(VbScript) is as follows:
Dim oSession, oNamespace, oApp
Dim userProfile
Dim const_cdoPR_Account
const_cdoPR_Account = &h3a00001e
Set oApp = CreateObject("Outlook.Application")
Set oNamespace = oApp.GetNamespace("MAPI")
Set oSession = oApp.CreateObject("MAPI.Session") // The
error is displayed when this stmt is encountered
oSession.MAPIOBJECT = Application.Session.MAPIOBJECT
I know the problem is because of some settings that are
required to be done. I visited few sites which mentions to
make some registry changes. But I am still not able to get
rid of that error.
Thanks in adavnce.
Regards,
-Reetu
I am using Outlook 2002 talking to Exchange server.
I am getting the following error:
"A program is trying to access e-mail address you have
stored in outlook. Do you want to allow this? If this
is unexpected it may be a virus and you should choose No."
The code(VbScript) is as follows:
Dim oSession, oNamespace, oApp
Dim userProfile
Dim const_cdoPR_Account
const_cdoPR_Account = &h3a00001e
Set oApp = CreateObject("Outlook.Application")
Set oNamespace = oApp.GetNamespace("MAPI")
Set oSession = oApp.CreateObject("MAPI.Session") // The
error is displayed when this stmt is encountered
oSession.MAPIOBJECT = Application.Session.MAPIOBJECT
I know the problem is because of some settings that are
required to be done. I visited few sites which mentions to
make some registry changes. But I am still not able to get
rid of that error.
Thanks in adavnce.
Regards,
-Reetu