SetUserOofSettings Operation
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

SetUserOofSettings Operation

Topic Last Modified: 2008-09-04

The SetUserOofSettings Web method sets a mailbox user's Out of Office (OOF) settings and message.

The following example of a SetUserOofSettings request sets an OOF setting for ten days.

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="" xmlns:xsd="" xmlns:soap="">
    <SetUserOofSettingsRequest xmlns="">
      <Mailbox xmlns="">
      <UserOofSettings xmlns="">
          <Message>I am out of office.  This is my internal reply.</Message>
          <Message>I am out of office. This is my external reply.</Message>

The following example shows a successful response to the SetUserOofSettings request.

<?xml version="1.0" encoding="utf-8" ?> 
<soap:Envelope xmlns:soap=""
    <t:ServerVersionInfo MajorVersion="8" MinorVersion="0" MajorBuildNumber="685" MinorBuildNumber="8" xmlns:t="" /> 
    <SetUserOofSettingsResponse xmlns="">
      <ResponseMessage ResponseClass="Success">
© 2015 Microsoft