Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

using .Addressbook from MAPI.Session object

Posted on 2004-10-13
5
Medium Priority
?
2,073 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Changing a few Outlook Options can help keep you organized!
Outlook for dependable use in a very small business   This article is about using the Outlook application (part of Microsoft Office) in a very small business, or for homeowners where dependability and reliability are critical requirements. This …
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…

636 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