oldtroy 2021-08-31 14:26 采纳率: 85.7%
浏览 42
已结题

Outlook VBA 如何返回当前发送邮件的EntryID

事情是这样的,我用vba做了自动发邮件的宏,但是公司要求附件和密码必需分开发,所以我需要先让vba发一封带附件的邮件,然后再回复一下我发的邮件,再发一次密码,那么问题来了:

  1. 是不是只有EntryID能准确的定位到我发的邮件?
  2. 如何返回我发出去的邮件的EntryID?
    需要提前说明的是,发邮件用的是公司邮箱,同一时间内会有大量相同题目的邮件发出去,所以用题目或者时间来搜索已发邮件的方法是不可取的。只能用EntryID这种唯一值来定位邮件。
  • 写回答

1条回答 默认 最新

  • 沉迷学习w 2021-08-31 14:49
    关注

    可以考虑 Message Id
    Entry Id 例如 把一封邮件由转移资料夹,Entry Id 会是转的

    
    Each Outlook item has a field called EntryID, which is a unique ID field generated by the messaging storage system for use with the MAPI folders that store the item. It's important to note that whenever an item is created in a folder, it is assigned a new EntryID. This means that the EntryID field changes if an item is moved to a different folder or if an item is exported and then imported (even to the same folder).
    
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 4月20日
  • 已采纳回答 4月12日
  • 创建了问题 8月31日