如何以编程方式创建分发列表? [英] How to programatically create a distribution list?

查看:81
本文介绍了如何以编程方式创建分发列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经通过键盘进行了搜索,但似乎并没有得到能够全面展现的东西。

我的PC上会有一个电子邮件地址列表。如何使用VB
(或C#)创建这些电子邮件地址的分发列表,供我们公司的Outlook用户使用?据我了解,DL
需要在Exchange服务器上。 DL将每天更新,因此如果我必须删除它然后重新创建它,那没关系。我需要对数据进行哪些验证?我对搜索提供的一些例子感到沮丧,因为他们在没有任何背景的情况下跳入了低级别的东西。例如,一个子程序使用"ByVal mventry as MVEntry"。作为一个输入参数但是没有说明MVEntry是什么或者在哪里获得和设置它。

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.

我是一位经验丰富的程序员但是新的Exchange。如果我可以指示我需要看的地方,那就太好了。教程或书也很棒。代码也适用于我。

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

TIA,
Scott

推荐答案

如果您的目标是Exchange 2007 SP1和/或Exchange 2010,最好的方法是使用 Exchange Web服务托管API 。使用ContactGroup类创建和修改通讯组列表。

如果您的目标是Exchange 2003或更早版本,则可以使用 WebDAV CDOEx 或甚至 MAPI
If you are targeting Exchange 2007 SP1 and/or Exchange 2010, the best way to go is with the Exchange Web Services Managed API. Use the ContactGroup class to create and modify distribution lists.

If you are targeting Exchange 2003 or earlier, you can use WebDAV, CDOEx or even MAPI.


这篇关于如何以编程方式创建分发列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆