Read the ContactItem.Email1Address property from the contact.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
> Read the ContactItem.Email1Address property from the contact.
..
hy
i've done it
http://msdn2.microsoft.com/en-us/library/bb220057.aspx
"Returns or sets a String representing the e-mail address of the first
e-mail entry for the contact."
...but i don't know how to use it in my code...
NewMail.To = someone@some.it
NewMail.CC = someone@some.it
NewMail.BCC = someone@some.it
i would be able to write in "NewMail.To=" directly the distribution list
name stored in my contacts folder (NewMail.To="Clienti" or
NewMail.to="query" and not "cliente1@dom.it; cliente2@dom.it;
cliente3@dom.it; ecc ecc"
i don't need to change the DL
...manually from outlook adress book interface i can add and remove members
from the distribution list as i need
tanks
Dmitry Streblechenko - 17 Mar 2008 18:12 GMT
If the DL comes from one of the contacts folders that are used by the
automatic name resolution (such as the default Contacts folder), you can
just set the MailItem.To property to the name DL. The DL name will be
resolved when you call MailItem.Recipients.ResolveAll or when teh mesage is
sent.
Otherwise you can either set the To property to a ";" separated list of DL
member addresses (loop through the DistListItem.Members collection) or call
MailItem.Recipients.Add for each DL member address.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
>> Read the ContactItem.Email1Address property from the contact.
>>
[quoted text clipped - 23 lines]
>
> tanks