Slipstick Forums  

Go Back   Slipstick Forums > Exchange Server > Development

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-30-2009, 04:03 PM
scottb2
Guest
 
Posts: n/a
Default How to programatically create a distribution list?

I've about worn through the keyboard doing searches but don't 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's 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
didn't say anything about what an MVEntry was or where to obtain and
set it up.

I'm 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

Reply With Quote
  #2  
Old 10-30-2009, 04:06 PM
scottb2
Guest
 
Posts: n/a
Default Re: How to programatically create a distribution list?

On Oct 30, 2:03*pm, scottb2 wrote:
> I've about worn through the keyboard doing searches but don't 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's 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
> didn't say anything about what an MVEntry was or where to obtain and
> set it up.
>
> I'm 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're using Exchange Server 2003 and Outlook 2003. Let
me know if I need to provide anything else.

Scott
Reply With Quote
  #3  
Old 10-31-2009, 06:10 PM
Ed Crowley [MVP]
Guest
 
Posts: n/a
Default Re: How to programatically create a distribution list?

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
"There are seldom good technological solutions to behavioral problems."
..

"scottb2" wrote in message
news:623b2c07-fd1a-4265-8155-b0995fe146eb@p9g2000vbl.googlegroups.com...
> I've about worn through the keyboard doing searches but don't 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's 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
> didn't say anything about what an MVEntry was or where to obtain and
> set it up.
>
> I'm 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


Reply With Quote
  #4  
Old 11-01-2009, 02:25 AM
Ed Crowley [MVP]
Guest
 
Posts: n/a
Default Re: How to programatically create a distribution list?

I left out that after you create the group, you'll need to mail-enable it.
--
Ed Crowley MVP
"There are seldom good technological solutions to behavioral problems."
..

"Ed Crowley [MVP]" wrote in message
news:%23OkNC6mWKHA.3428@TK2MSFTNGP06.phx.gbl...
> 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
> "There are seldom good technological solutions to behavioral problems."
> .
>
> "scottb2" wrote in message
> news:623b2c07-fd1a-4265-8155-b0995fe146eb@p9g2000vbl.googlegroups.com...
>> I've about worn through the keyboard doing searches but don't 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's 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
>> didn't say anything about what an MVEntry was or where to obtain and
>> set it up.
>>
>> I'm 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

>


Reply With Quote
  #5  
Old 11-02-2009, 05:43 AM
Glen Scales [MVP]
Guest
 
Posts: n/a
Default Re: How to programatically create a distribution list?

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

"scottb2" wrote in message
news:623b2c07-fd1a-4265-8155-b0995fe146eb@p9g2000vbl.googlegroups.com...
> I've about worn through the keyboard doing searches but don't 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's 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
> didn't say anything about what an MVEntry was or where to obtain and
> set it up.
>
> I'm 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



Reply With Quote
Reply

Bookmarks


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create BCC distribution list Erol Outlook General 4 08-06-2009 10:34 AM
how do i create a global distribution list in Outlook? Kiran Contacts 1 08-04-2009 05:50 PM
Re: Create contacts from distribution list members =?Utf-8?B?c3dlZXRvbGl2ZQ==?= Contacts 1 05-22-2009 05:58 PM
Create a Distribution List using VBScript on a Web Page =?Utf-8?B?RGF2aWQgSA==?= Outlook General 3 04-13-2009 11:29 PM
Create FAX Distribution List From a Custom Sort ed@eselby.com Outlook General 1 03-12-2009 07:07 PM


All times are GMT -4. The time now is 04:27 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.