I need to be able to read and add to the collection of email addesses for an
Active Directory User with a mailbox. I assume that this is a collection
object.
However I can't find any help on which technology to use. I can create and
access the properties for a user using
System.DirectoryServices.DirectoryEntry and then create a mailbox using
CDOEXM.IMailboxStore which adds an e-mail address automatically.
There is an email property on the General tab of Active Directory Uses and
Computers User Properties MMC which is easy to access using 'mail' property
of a DirectoryEntry user object but how do you access the collection of
E-mail addresses on the E-mail addresses tab. There is also the question of
how to set the primary e-mail address.
In the Active Directory Uses and Computers user properties MMC you add a new
e-mail address, say SMTP, and which ever address is selected as the primary
address then appears as the 'mail' property on the general tab. I need to do
this programmatically.
Any suggestions where to start please?
Thanks