Sending Messages
The SendItem Web Method
Up to this point in the chapter, the CreateItem and UpdateItem Web methods have been used to send messages to their recipients. Sending was accomplished by setting the MessageDisposition attribute to SendOnly or SendAndSaveCopy when making the Web method call. However, there may be times when you want to send an existing draft message without making modifications to it. CreateItem will not work in such a case since it always generates a new message. UpdateItem will work, but you must also specify a property to change as part of the call.
To cover this scenario, Exchange Web Services offers the SendItem Web method. Example 7-25 shows the basic structure of a SendItem call.
Example 7-25. Basic structure of ...
Get Inside Microsoft® Exchange Server 2007 Web Services now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.