Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically Added Distribution List in Outlook from
Message
From
23/08/2001 18:21:12
 
 
To
23/08/2001 12:19:56
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00548099
Message ID:
00548372
Views:
8
>I need to programmatically add distribution lists in Outlook2000 from a vfp
>table. Any ideas would be appreciated... Eric

This snippet should give you a good start:
oOL = CREATEOBJECT("Outlook.Application")
myTemp = oOL.CreateItem(0) && mail item
myDist = oOL.CreateItem(7) && distribution list item
myDist.DLName = "Programmatic Distlist"
myRecipients = myTemp.Recipients
myRecipients.Add("Crescencio Flores")
myRecipients.Add("Joe Programmer")
myDist.AddMembers(myRecipients)
mydist.Display
Just to clarify, these recipient's format is resolved through an exchange server's global address list by Outlook.
HTH
Previous
Reply
Map
View

Click here to load this message in the networking platform