title: 'How to: Publish a chat message digest through email' TOCTitle: 'How to: Publish a chat message digest through email' ms:assetid: 19c47a43-b1cf-4039-990a-bd003bc4b1f6 ms:mtpsurl: https://msdn.microsoft.com/library/Dn465901(v=office.15) ms:contentKeyID: 57101379 ms.date: 07/24/2014 mtps_version: v=office.15
Learn how the Microsoft Lync Server 2013 Persistent Chat API and Exchange Web Services (EWS) Managed API is used to create the Persistent Chat message digest. The digest is used in the Microsoft Outlook inbox for each Persistent Chat room member.
Applies to: Lync 2013 | Lync Server 2013
In a forum, it's customary to provide message digest as a mechanism to notify the participants of newly posted messages to the forum even when the participants are not online. The message digest can be in the form of complete listing of messages or some type of summaries. It can be delivered to the email accounts of the members of the forum as soon as new messages are posted or on a fixed schedule.
The Microsoft Lync Server 2013 Persistent Chat API and Exchange Web Services (EWS) Managed API can be used to provide the digest of Persistent Chat messages to the Outlook Inboxes of the members of a chat room. The simplest case would involve sending newly posted messages to the chat room members’ Outlook Inboxes as soon as they are posted.
This scenario includes the following programming tasks:
-
Connect to Persistent Chat Server on a UserEndpoint-based PersistentChatEndpoint.
-
Select a chat room and retrieve all the members of the room.
-
Establish a chat room session and register to receive ChatMessageReceived events.
-
In the ChatMessageReceived event handler, send the parsed message to the Outlook Inboxes of the chat room members using EWS.