Solved

using .Addressbook from MAPI.Session object

Posted on 2004-10-13
5
2,070 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…

737 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