如何设置 Outlook 以在每天的特定时间发送自动回复?

Avi*_*vik 8 microsoft-outlook microsoft-outlook-2010 auto-reply

我想在工作日保护自己免受不合理的要求。其中之一是告诉人们我不会在下午 3 点之前回复任何电子邮件。

我想在 Outlook 中设置一个规则,在下午 3 点之前回复所有电子邮件并带有特定消息。我希望每天都这样做,无论日期如何。

我该如何设置?

到目前为止,我已经尽我所能地搜索了 Google,并且我认为,基于 Exchange 论坛,可能需要一个脚本。但到目前为止我发现的只是服务器端脚本。我需要在我自己的机器上安装一些东西。

参考资料:http : //www.telnetport25.com/2012/01/exchange-2010-out-of-office-fun-with-set-mailboxautoreplyconfiguration/

http://social.technet.microsoft.com/Forums/en-US/exchangesvrclientslegacy/thread/08a033ce-ea79-4dec-bd7c-4d617cc52e02/

小智 8

您的姓名在“收件人”框中的位置。

Public Sub Check_ReceivedTime(newMail As Outlook.MailItem)

Dim obj As Object
Dim ReceivedHour As Integer
Dim newReply As MailItem
Dim msg As String

ReceivedHour = Hour(newMail.ReceivedTime)

If ReceivedHour < 15 Then

    Set newReply = newMail.reply
    msg = "I will respond some time after 3 pm."

    CreateMail newReply.To, msg

Else

    Debug.Print "After 3. Do not sent the automated reply."

End If

Set newReply = Nothing

End Sub


Private Sub CreateMail(ReplyAddress As String, msg As String)

Dim objMail As Outlook.MailItem

Set objMail = CreateItem(olMailItem)

With objMail
    .To = ReplyAddress
    .Body = msg

    .Display
    ' or
    ' .Send

End With

End Sub
Run Code Online (Sandbox Code Playgroud)

编辑:将代码粘贴到 VBA 编辑器中。该代码将在“运行脚本”中提供。

另见http://www.slipstick.com/outlook/rules/outlooks-rules-and-alerts-run-a-script/