Query regarding the message being set for out of office in core reply body

Hi I am using this http://msdn.microsoft.com/en-us/library/office/hh532556(v=exchg.80).aspx for setting the automatic reply message out of office.

The issue i am facing is that newline characters seem to be ignored by ReplyBodyMessage property http://msdn.microsoft.com/en-us/library/office/exchangewebservices.replybody.message(v=exchg.150).aspx

Its replacing the new line chars with a space char. Is there some way around this of making message property accept newlines etc. 

Any sort of direction would be great help

Thanks

Madhur

September 2nd, 2014 10:46am

You should be using HTML Markup if you want to put new lines in eg

            OofSettings oof = service.GetUserOofSettings("user@domain.com");
            oof.ExternalReply = "test line 1<br>test line 2<br>test line3";
            oof.State = OofState.Enabled;
            service.SetUserOofSettings("user@domain.com", oof);
Cheers
Glen

Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2014 12:49am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics