A
Anthony Vannier
I use Exchange 2000, and this code fill DistList in a local folder but not
in public folder :
Dim oItemList As DistListItem
Dim oItemContact As Outlook.ContactItem
Dim oItemRecipient As Outlook.Recipient
Dim oItemRecipients As Outlook.Recipients
'Contact
Set oItemContact = oOutlook.GetItemFromID(m_strEnrtyId, m_strStoreId)
'DistList
Set oItemList = oFolder.Items.Add(olDistributionListItem)
oItemList.DLName = "Cadeaux"
Set oItemMail = oOutlook.Application.CreateItem(olMailItem)
Set oItemRecipients = oItemMail.Recipients
Set oItemRecipient = oItemRecipients.Add(oItemContact)
oItemList.AddMembers oItemRecipients
oItemList.Save
Can you help me ?
Thanks
in public folder :
Dim oItemList As DistListItem
Dim oItemContact As Outlook.ContactItem
Dim oItemRecipient As Outlook.Recipient
Dim oItemRecipients As Outlook.Recipients
'Contact
Set oItemContact = oOutlook.GetItemFromID(m_strEnrtyId, m_strStoreId)
'DistList
Set oItemList = oFolder.Items.Add(olDistributionListItem)
oItemList.DLName = "Cadeaux"
Set oItemMail = oOutlook.Application.CreateItem(olMailItem)
Set oItemRecipients = oItemMail.Recipients
Set oItemRecipient = oItemRecipients.Add(oItemContact)
oItemList.AddMembers oItemRecipients
oItemList.Save
Can you help me ?
Thanks