P
Phil
I am trying to iterate through the contacts of a public folder to get
the e-mail addresses using Redeption but get the security pop-up.
A cut down version of the code I am using is below
Dim objItem As MAPI.Message
Dim objSession As MAPI.Session
Dim objNormFolder As MAPI.Folder
Dim utils As Redemption.MAPIUtils
Dim objFolder As Redemption.MAPIFolder
Set objSession = New MAPI.Session
objSession.Logon , , , , , , "Server" & vbLf & "Mailbox"
Set utils = CreateObject("Redemption.MAPIUtils")
utils.MAPIOBJECT = objSession.MAPIOBJECT
Set objNormFolder =
objSession.InfoStores(1).RootFolder.Folders.Item(2).Folders.Item(8)
Set objFolder = New Redemption.MAPIFolder
objFolder.Item = objNormFolder
Set objItem = objFolder.Messages(1) <==== Security pop-up here
The problem is that the last line results in the security pop-up.
Any ideas what I am doing wrong?
the e-mail addresses using Redeption but get the security pop-up.
A cut down version of the code I am using is below
Dim objItem As MAPI.Message
Dim objSession As MAPI.Session
Dim objNormFolder As MAPI.Folder
Dim utils As Redemption.MAPIUtils
Dim objFolder As Redemption.MAPIFolder
Set objSession = New MAPI.Session
objSession.Logon , , , , , , "Server" & vbLf & "Mailbox"
Set utils = CreateObject("Redemption.MAPIUtils")
utils.MAPIOBJECT = objSession.MAPIOBJECT
Set objNormFolder =
objSession.InfoStores(1).RootFolder.Folders.Item(2).Folders.Item(8)
Set objFolder = New Redemption.MAPIFolder
objFolder.Item = objNormFolder
Set objItem = objFolder.Messages(1) <==== Security pop-up here
The problem is that the last line results in the security pop-up.
Any ideas what I am doing wrong?