事情是这样的,我用vba做了自动发邮件的宏,但是公司要求附件和密码必需分开发,所以我需要先让vba发一封带附件的邮件,然后再回复一下我发的邮件,再发一次密码,那么问题来了:
- 是不是只有EntryID能准确的定位到我发的邮件?
- 如何返回我发出去的邮件的EntryID?
需要提前说明的是,发邮件用的是公司邮箱,同一时间内会有大量相同题目的邮件发出去,所以用题目或者时间来搜索已发邮件的方法是不可取的。只能用EntryID这种唯一值来定位邮件。
事情是这样的,我用vba做了自动发邮件的宏,但是公司要求附件和密码必需分开发,所以我需要先让vba发一封带附件的邮件,然后再回复一下我发的邮件,再发一次密码,那么问题来了:
可以考虑 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).