Solved

using .Addressbook from MAPI.Session object

Posted on 2004-10-13
5
2,065 Views
Last Modified: 2012-05-05
I have an Exchange 2000 server
Client is Outlook 2003
I have a custom form that is published to the Organizational Forms Library and is not 1 offed.
All the docs I can find say that if it is published in Org Lib then Outlook Security Blocks will be bypassed but I am finding the exact opposite, works a treat in Outlook 2002 but security prompts in 2003.

Can anyone shed some light on this ... please ???

TIA,
Steve

Private Function GetRecipients()

Dim outRecipients            'collection of recipients
Dim outRecipient            'single recipient
Dim strRecipients            'string of recipient names
Dim n                  'integer

On Error Resume Next
If moutSession Is Nothing Then
   Set moutSession = CreateObject("mapi.session")
   moutSession.Logon , , False, False
End If

Set outRecipients = moutSession.Addressbook
strRecipients = ""

For n = 1 To outRecipients.Count
   Set outRecipient = outRecipients.Item(n)
   strRecipients = strRecipients & outRecipient.Name & ";"
Next
If Len(strRecipients) <> 0 Then
   strRecipients = Left(strRecipients, Len(strRecipients) - 1)    'Remove last ";"
   GetRecipients = strRecipients
Else
   GetRecipients = ""
End If

Set outRecipients = Nothing
Set outRecipient = Nothing

End Function
0
Comment
Question by:stevbe
  • 2
5 Comments
 
LVL 39

Accepted Solution

by:
stevbe earned 0 total points
ID: 12298439
it was not the code ... we forgot the CLient registry key that tells Outlook to use the Server Security settings as documented here ...

http://www.slipstick.com/outlook/esecup/admin.htm

Steve
0
 
LVL 39

Author Comment

by:stevbe
ID: 12299577
hey ee ... is  THX 1138 your cousin?
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

If you don't know how to downgrade, my instructions below should be helpful.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now