Results 1 to 5 of 5

Thread: How to programatically create a distribution list?

  1. #1
    scottb2 Guest

    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

  2. #2
    scottb2 Guest

    Default Re: How to programatically create a distribution list?

    On Oct 30, 2:03*pm, scottb2 <scott_blackle...@yahoo.com> 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

  3. #3
    Ed Crowley [MVP] Guest

    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" <scott_blackledge@yahoo.com> 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



  4. #4
    Ed Crowley [MVP] Guest

    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]" <curspice@nospam.net> 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" <scott_blackledge@yahoo.com> 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

    >



  5. #5
    Glen Scales [MVP] Guest

    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" <scott_blackledge@yahoo.com> 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




Similar Threads

  1. Replies: 1
    Last Post: 09-04-2009, 02:49 PM
  2. How to create BCC distribution list
    By Erol in forum Outloook General Archives
    Replies: 4
    Last Post: 08-06-2009, 06:34 AM
  3. how do i create a global distribution list in Outlook?
    By Kiran in forum Contacts Archive
    Replies: 1
    Last Post: 08-04-2009, 01:50 PM
  4. Create a Distribution List using VBScript on a Web Page
    By =?Utf-8?B?RGF2aWQgSA==?= in forum Outloook General Archives
    Replies: 3
    Last Post: 04-13-2009, 07:29 PM
  5. Create FAX Distribution List From a Custom Sort
    By ed@eselby.com in forum Outloook General Archives
    Replies: 1
    Last Post: 03-12-2009, 03:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts