4.3 SetUserOofSettings Request

The following example shows how to set a specified user's OOF settings.

 <?xml version="1.0" encoding="utf-8"?>
 <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
     <SetUserOofSettingsRequest xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
       <Mailbox xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
         <Address>u1@example.com</Address>
         <RoutingType>SMTP</RoutingType>
       </Mailbox>
       <UserOofSettings xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
         <OofState>Enabled</OofState>
         <ExternalAudience>All</ExternalAudience>
         <InternalReply>
           <Message>I am out of office. This is my internal reply.</Message>
         </InternalReply>
         <ExternalReply>
           <Message>I am out of office. This is my external reply.</Message>
         </ExternalReply>
       </UserOofSettings>
     </SetUserOofSettingsRequest>
   </soap:Body>
 </soap:Envelope>
Show: