Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically Added Distribution List in Outlook from
Message
De
23/08/2001 18:21:12
 
 
À
23/08/2001 12:19:56
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00548099
Message ID:
00548372
Vues:
9
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform