Solved

using .Addressbook from MAPI.Session object

Posted on 2004-10-13
5
2,071 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
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…
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 …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

691 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