Exchange Server 2003
(1)
Active Directory
(1)
Outlook 2003
(1)
Outlook
(1)
VB
(1)
Thenyou
(1)
Mventry
(1)
RDO
(1)

How to programatically create a distribution list?

Asked By scottb2
31-Oct-09 01:50 AM
I have about worn through the keyboard doing searches but do not seem to
be getting things that give the whole picture.

I will have a list of email addresses on my PC.  How do I, using VB
(or C#), create a distribution list of these email addresses that is
to be used by our company's Outlook users?  As I understand it, the DL
needs to be on the Exchange server.  The DL will be updated daily so
if I have to delete it and then recreate it, that is okay.  What
validations on the data would I need to do?  I have been frustrated
with some of the examples that the search provided because they jumped
into the low level stuff without any context.  For example, one
subroutine used "ByVal mventry as MVEntry" as one input parameter but
did not say anything about what an MVEntry was or where to obtain and
set it up.

I am an experienced programmer but new to Exchange.  If I can be given
pointers to where I need to look, that would be great.  A tutorial or
book would also be great.  Code also works for me.

TIA,
Scott

Btw, I believe we are using Exchange Server 2003 and Outlook 2003.

scottb2 replied to scottb2
31-Oct-09 01:50 AM
Btw, I believe we are using Exchange Server 2003 and Outlook 2003.  Let
me know if I need to provide anything else.

Scott

Distribution groups (not lists) are Active Directory entities.

Ed Crowley [MVP] replied to scottb2
31-Oct-09 05:10 PM
Distribution groups (not lists) are Active Directory entities.  Using ADSI
you can create a new group, preferably a universal distribution group.  Then
you can add recipients' distinguished names to the member attribute.
--
Ed Crowley MVP
.

I left out that after you create the group, you will need to mail-enable it.

Ed Crowley [MVP] replied to Ed Crowley [MVP]
01-Nov-09 01:25 AM
I left out that after you create the group, you will need to mail-enable it.
--
Ed Crowley MVP
.
If you want to create a Contact Folder distribution list (personal DL) thenyou
Glen Scales [MVP] replied to scottb2
02-Nov-09 04:43 AM
If you want to create a Contact Folder distribution list (personal DL) then
you need to either use MAPI via OOM,RDO or CDO 1.2 eg
http://support.microsoft.com/kb/178787  or
http://www.outlookcode.com/codedetail.aspx?id=1123

Cheers
Glen
Post Question To EggHeadCafe