Мне нужно создать правило в 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
Что-то отсутствует, и я не знаю, как это исправить.