SendItemType class
Exchange Server 2013
The SendItemType class represents a request to send a message.
Namespace: ExchangeWebServices
Assembly: EWS (in EWS.dll)
The CreateItem operation sends e-mails and meeting requests to recipients and attendees. The SendItem operation is used when the item has been created and has not yet been sent.
The following code example shows you how to create a SendItem request by using the SendItemType class.
ExchangeServiceBinding esb = new ExchangeServiceBinding(); esb.Credentials = new NetworkCredential("username", "password", "myDomain"); esb.Url = @"https://myServer.myDomain.com/EWS/Exchange.asmx"; // Create the SendItem request. SendItemType sit = new SendItemType(); sit.ItemIds = new BaseItemIdType[1]; // Create an item ID type and set the message ID and change key. ItemIdType itemId = new ItemIdType(); // Get the ID and change key from the message that was obtained by using FindItem or CreateItem. itemId.Id = "AQAtA="; itemId.ChangeKey = "CQAAAB"; sit.ItemIds[0] = itemId; // Send the message. SendItemResponseType siResponse = esb.SendItem(sit);
Show: