2010 Exchange Server自动自动回复后小时

我有一个自我托pipe的2010 Exchange Server的客户端。 他们希望自动回复仅在下午5点到8点之间自动打开。 在这段时间内,他们不希望有任何新电子邮件的通知出现在他们的设备上,但仍希望能够检查他们的电子邮件。

交换机是可以configuration的吗?或者有一些软件可以做到这一点吗? 或者我需要开发一个定制的解决scheme?

开箱即可,但是您可以使用EWS轻松编写代码。

在C#中设置一个邮箱的外出邮件示例;

static void SetOOF(ExchangeService service) { OofSettings myOOF = new OofSettings(); // Set the OOF status to be a scheduled time period. myOOF.State = OofState.Scheduled; // Select the time period to be OOF. myOOF.Duration = new TimeWindow(DateTime.Now.AddDays(4), DateTime.Now.AddDays(5)); // Select the external audience that will receive OOF messages. myOOF.ExternalAudience = OofExternalAudience.All; // Set the OOF message for your internal audience. myOOF.InternalReply = new OofReply("I'm currently out of office. Please contact my manager for critical issues. Thanks!"); // Set the OOF message for your external audience. myOOF.ExternalReply = new OofReply("I am currently out of the office but will reply to emails when I return. Thanks!"); // Set the selected values. This method will result in a call to the Exchange server. service.SetUserOofSettings("[email protected]", myOOF); } 

有了这个例子,你可以看到它很简单,你只需要使用一个pipe理员的帐户,可以模拟所有的邮箱设置不在办公室的消息。

如果你不编码,你也可以用curl发送一些XML。 就像在那里显示的那样: 使用EWS的UNIX和UNIX Shell脚本很快并且很脏

  <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <t:RequestServerVersion Version="Exchange2010_SP1" /> </soap:Header> <soap:Body> <m:SetUserOofSettingsRequest> <t:Mailbox> <t:Address>[email protected]</t:Address> </t:Mailbox> <t:UserOofSettings> <t:OofState>Scheduled</t:OofState> <t:ExternalAudience>All</t:ExternalAudience> <t:Duration> <t:StartTime>2011-10-29T18:45:08.243Z</t:StartTime> <t:EndTime>2011-10-30T18:45:08.243Z</t:EndTime> </t:Duration> <t:InternalReply xml:lang="en-US"> <t:Message>I'm currently out of office. Please contact my manager for critical issues. Thanks!</t:Message> </t:InternalReply> <t:ExternalReply xml:lang="en-US"> <t:Message>I am currently out of the office but will reply to emails when I return. Thanks!</t:Message> </t:ExternalReply> </t:UserOofSettings> </m:SetUserOofSettingsRequest> </soap:Body> </soap:Envelope> 

从那里的例子

另一方面,对于设备通知是另一回事,执行推送通知的是设备本身,而不是Exchange。 对于这一部分,我不能帮助。