【发布时间】:2018-07-22 10:20:30
【问题描述】:
使用 VBA 或 .NET 作为加载项,如果回复包含特定地址,是否可以创建 Outlook 规则?
我的第一个问题是from字段中的发件人与reply-to字段不同。这是因为发件人通过邮件列表发送电子邮件。
根据 MSDN 文档,VBA 枚举对象中有no documented reply-to rule。存在的规则示例:
olConditionSenderAddress
以下规则不存在:
olConditionReplyTo
最好,我想使用 VBA 解决这个问题,但如果不可能,我可以求助于创建一个加载项 .NET 应用程序。 但是,似乎有no 。但是,有 a ReplyTo property associated with the VBA Mailitem object.MailMessage.ReplyTo property in the .NET DOM hierarchy,但该 API 被列为过时。
编辑:显然,ReplyRecipientsName 是要使用的正确 VBA 属性。
【问题讨论】:
-
@MitchWheat 你读过标签了吗?上次我检查时,Visual Basic for applications 是一种编程语言。
-
请花一些时间阅读帮助页面,尤其是名为"What topics can I ask about here?" 和"What types of questions should I avoid asking?" 的部分。更重要的是,请阅读the Stack Overflow question checklist。您可能还想了解Minimal, Complete, and Verifiable Examples。
-
@Clijsters 我希望更新后的问题现在能更好地反映 StackOverflow 政策。否则,请让我知道我的错误之处。
标签: .net vba outlook outlook-addin