How to use Redemption with Dynamic Distribution List

M

ML

I have an application that among others will generate a new contact
list into a specific pst file with data coming from my db. I need to
get rid of the security message that I get buy invoking the
Recipients. I am not sure how to integrate Redemption to my code and
make it work. Please show me some samples that will use this method,
I need to overcome this item to complete my application.

This is a my code with one item to add that works fine except for the
security dialog. I use a brief method here, but my actual method will
crate many DL with many items on each.

'-----------------------------------------------------------------------
Dim LGPDistList As DistListItem
Dim myTempItem As MailItem
Dim myRecipients As Recipients
'-----------------------------------------------------------------------
'--gol is set as oulook application
'--MyItems is pointing to my contact item in my contact folder of my
pst
'-----------------------------------------------------------------------

Set LGPDistList = MyItems.Add(olDistributionListItem)
Set myTempItem = gol.CreateItem(olMailItem)
Set myRecipients = myTempItem.Recipients

LGPDistList.DLName = "Testing"
myRecipients.Add "A valid address here"

LGPDistList.AddMembers myRecipients
LGPDistList.Save
 
M

ML

Ken Slovak - said:
Have you looked at the code samples on the Redemption Web site
(www.dimastr.com/redemption)? There are examples there of using various
Redemption objects.

I have resolved this and wrote my application and I am successfully
creating my dynamic Distribution Lists. Yes, I did visit the
Redemption site and was able to learn quite a bit, Thanks!
 
M

ML

Ken Slovak - said:
Have you looked at the code samples on the Redemption Web site
(www.dimastr.com/redemption)? There are examples there of using various
Redemption objects.

I have resolved this and wrote my application and I am successfully
creating my dynamic Distribution Lists. Yes, I did visit the
Redemption site and was able to learn quite a bit, Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top