Sends a message stored in exchange server.

Namespace:  Rebex.Net
Assembly:  Rebex.Ews (in Rebex.Ews.dll)

Syntax

Visual Basic
Public Sub SendMessage ( _
	itemId As EwsItemId, _
	saveFolderId As EwsFolderId _
)
C#
public void SendMessage(
	EwsItemId itemId,
	EwsFolderId saveFolderId
)

Parameters

itemId
Type: Rebex.Net..::..EwsItemId
ID of a message to send.
saveFolderId
Type: Rebex.Net..::..EwsFolderId
ID of a folder to which to move the sent message. Specify null (Nothing in VB.NET) to discard (permanently delete) the message.

Remarks

This operation needs ChangeKey to be set to the latest value. This operation doesn't work on some Exchange versions (e.g. Exchange 2010) if the message was already sent.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also