【问题标题】:Creating Outlook Voting button and tracking response in C#?在 C# 中创建 Outlook 投票按钮和跟踪响应?
【发布时间】:2009-07-02 03:00:02
【问题描述】:

使用 C# 2.0 我想:

  1. 在 Outlook 邮件消息中添加投票按钮并发送。
  2. 跟踪响应。

我可以看到一些参考资料来阅读邮件内容,因此可能会进行跟踪,但我如何实现投票按钮?

【问题讨论】:

    标签: c# outlook


    【解决方案1】:

    您必须将此 VB 代码翻译成 c#

    ActiveInspector.CurrentItem.VotingOptions = "Yes;No;Maybe"

    为了进行跟踪,您必须参考使用投票选项发送的电子邮件。

    for i = 1 to ActiveInspector.CurrentItem.Recipients.Count if ActiveInspector.CurrentItem.TrackingStatus = olTrackingReplied then debug.Print ActiveInspector.CurrentItem.Recipients(i).AutoResponse endif next

    编辑:这里,ActiveInspector.CurrentItem 指的是随投票按钮一起发送的 MailItem 实例。您可以通过使用引用 ActiveInspector.CurrentItem 的变量来优化此代码,并在代码中使用该变量。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-14
      • 1970-01-01
      • 2019-03-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多