我正在使用 Outlook 2010。是否可以创建类似于以下规则:当我收到具有特定主题的消息时,安排 5 封电子邮件(第一封立即回复,第二封 3 小时后回复,第三封 6 小时后回复等)?
答案1
您可以运行脚本。
VBA 看起来像这样。
Sub MultipleDelayedReplies(MyMail As MailItem)
Dim HourInc As Integer
Dim sEndDate As Date
Dim reply As MailItem
Dim i As Integer
sEndDate = Now()
reply.Subject = reply.Subject & " Immediate Reply."
reply.HTMLBody = "Reply 1" & reply.HTMLBody
HourInc = 3
For i = 2 To 5
Set reply = MyMail.reply
sEndDate = DateAdd("h", HourInc, sEndDate)
reply.DeferredDeliveryTime = sEndDate
reply.Subject = reply.Subject & " " & reply.DeferredDeliveryTime
reply.HTMLBody = "Reply " & i & reply.HTMLBody
'reply.Display
' or
reply.Send
Next i
End Sub
此处进一步描述了该过程。
我相信 Outlook 必须处于打开状态才能在指定时间发送电子邮件。