O'Reilly logo

Inside Microsoft® Exchange Server 2007 Web Services by Huw Upshall, Mark Taylor, Ben Spain, Michael Mainer, David Sterling

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required