我需要在Outlook中创建一个规则来推迟发送消息
代码是这样的:
Set colRules = Application.Session.DefaultStore.GetRules()
'Create the rule by adding a SendRule to Rules collection
Set oRule = colRules.Create("Envoi différé", olRuleSend)
Set oDeferRuleAction = oRule.Actions(OlRuleActionType.olRuleActionDefer)
With oDeferRuleAction
.Enabled = True
' then the first action is activate "delete category" but not defer delivery
' and I can't set a number of minutes
End With
缺少某些东西,我不知道如何解决它。
答案 0 :(得分:0)
请参阅http://msdn.microsoft.com/en-us/library/office/ff868996(v=office.14).aspx
olRuleActionDefer
以编程方式创建新规则时支持?:否