如果特定收件箱文件夹达到 20 个项目,则发出警告通知

Warning Notification if specific inbox folder reaches 20 items

VBA 上的新内容,不知道该做什么。我脑子里有逻辑,但无法编写代码。

  1. 当收件箱中的特定文件夹达到 20 封邮件时,它将向特定电子邮件发送通知。

此致,

您可以处理项目 class 的 NewMailEx event of the Application class or the ItemAdd 事件,您可以在其中查看特定文件夹 (folder.Items.Count) 中的项目数量,并在需要时发送通知。