简体   繁体   English

Exchange路由代理-检查电子邮件地址是否为带有C#的Exchange通讯组列表

[英]Exchange Routing agent - check if email address is an Exchange Distribution List with C#

i'm tring to build a routing agent dll for exchange 2010, that will check if the recipient email address is an Exchange Distribution List. 我正在尝试为Exchange 2010构建路由代理dll,它将检查收件人电子邮件地址是否为Exchange通讯组列表。 if it is, i want to get the email adresses that are part of the distribution list. 如果是,我想获取通讯组列表中的电子邮件地址。

so basically i need two things: 所以基本上我需要两件事:

  1. query exchange to check if the email address is a simple mail or a D-group 查询交换以检查电子邮件地址是简单邮件还是D组
  2. get all distribution group email members. 获取所有通讯组电子邮件成员。

i'm working on visual studio 2013 with c# , and new working with exchange, what is the namespace/package i should work with to do these things ? 我正在使用c#在Visual Studio 2013上进行工作,而在Exchange上又进行了新工作,我应该使用什么名称空间/程序包来执行这些操作?

thanks. 谢谢。

David. 大卫。

  1. You can use the AddressBook class to do that eg use https://msdn.microsoft.com/en-us/library/office/aa564676(v=exchg.150).aspx which will return https://msdn.microsoft.com/en-us/library/office/microsoft.exchange.data.transport.addressbookentry.recipienttype(v=exchg.150).aspx 您可以使用AddressBook类来执行此操作,例如,使用https://msdn.microsoft.com/zh-cn/library/office/aa564676(v=exchg.150).aspx ,它将返回https://msdn.microsoft。 com / zh-CN / library / office / microsoft.exchange.data.transport.addressbookentry.recipienttype(v = exchg.150).aspx

  2. You can fork or expand the recipients of a message in a Transport Agent https://msdn.microsoft.com/en-us/library/office/microsoft.exchange.data.transport.routing.queuedmessageeventsource.expandrecipients(v=exchg.150).aspx if you want to expand a list that would requires an AD call which can be very costly in terms of performance in a Transport Agent. 您可以在传输代理中派生或扩展邮件的收件人https://msdn.microsoft.com/zh-cn/library/office/microsoft.exchange.data.transport.routing.queuedmessageeventsource.expandrecipients(v=exchg。 150).aspx,如果要扩展一个列表,该列表将需要进行AD调用,这在传输代理中的性能可能会非常昂贵。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Exchange路由代理-使用C#检查电子邮件地址是否是Exchange共享邮箱 - Exchange Routing agent - check if email address is a exchange shared mailbox using C# Exchange路由代理检测电子邮件方向 - Exchange Routing Agent Detect Email Direction 如何使用 c# 向 Exchange 分发列表发送电子邮件 - How do I send an email to an Exchange Distribution list using c# C#-通过Powershell运行空间删除Exchange电子邮件地址 - C# - Remove Exchange Email Address via Powershell Runspace Exchange - 路由代理,用于将电子邮件按摩的接收者从通讯组类型更改为其成员的单个电子邮件地址 - Exchange - routing agent that changes the email massage's recepient from a distribution group type to single email adresses from its members C#/ Exchange电子邮件客户端 - C# / Exchange EMail Client C#列出MS Exchange中的所有电子邮件地址 - C# List all email addresses in MS Exchange C# VSTO Outlook 插件 - 如何使用传出 Z0C83ZEFA57C7831CEB7B24 获取发送方的 email 地址? - C# VSTO Outlook plugin - How can I get the email address of the sender of an outgoing email using Exchange? C# MS Exchange 将电子邮件移至文件夹 - C# MS Exchange Move Email To Folder 在 C# 中读取 MS Exchange email - Read MS Exchange email in C#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM