使用 WebDav 通过 Exchange Server 发送会议请求
Contents
[
Hide
]
本文展示了如何使用 Microsoft Exchange Server 和 Aspose.Email 向多个收件人发送会议请求。它还解释了如何调整代码以适用于 Exchange Web Services。
使用 Web Dav 发送会议请求
发送会议请求:
- 使用以下方式创建会议请求 Appointment 类,并设置地点、时间和与会者。
- 创建该类的实例 MailMessage 类,并使用以下方式设置约会 MailMessage.addAlternateView() 方法。
- 连接到 Exchange 服务器并使用以下方式发送会议请求 send(MailMessage) 方法。
此示例使用 ExchangeClient 类,使用 WebDAV 用于连接 Exchange Server 的协议,可在启用了 WebDAV 的任何 Exchange Server 版本上使用,例如 Exchange 2000、2003 或 2007。
下面给出了用于发送会议请求的代码片段: