Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Interop / May 2004

Tip: Looking for answers? Try searching our database.

How to use Redemption with Dynamic Distribution List

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ML - 25 May 2004 16:55 GMT
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
Ken Slovak - [MVP - Outlook] - 26 May 2004 14:01 GMT
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.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> 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
[quoted text clipped - 26 lines]
> LGPDistList.AddMembers myRecipients
> LGPDistList.Save
ML - 27 May 2004 13:03 GMT
> Have you looked at the code samples on the Redemption Web site
> (www.dimastr.com/redemption)? There are examples there of using various
[quoted text clipped - 30 lines]
> > LGPDistList.AddMembers myRecipients
> > LGPDistList.Save

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!
ML - 27 May 2004 13:04 GMT
> Have you looked at the code samples on the Redemption Web site
> (www.dimastr.com/redemption)? There are examples there of using various
[quoted text clipped - 30 lines]
> > LGPDistList.AddMembers myRecipients
> > LGPDistList.Save

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!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.