加密何时将PDF连接到Outlook Mail
每当将带有PDF扩展的附件添加到Outlook VBA邮件中时,我都想加密。
有没有办法写这样的宏?
谢谢你吗?
I want to encrypt whenever an attachment with PDF extension is added to mail with Outlook vba.
Is there a way to write such a macro?
Thanky you?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以处理 mailitem.AttachmentAddd 活动当将附件添加到Outlook项目中时,这将被触发。因此,您可以检查附加文件 - 添加到项目的
附件
作为参数传递,并在需要时对其进行加密。例如:请注意,您可以在磁盘上找到缓存的文件。您可以在Windows注册表中找到实际路径:
You can handle the MailItem.AttachmentAdd event which is fired when an attachment has been added to an Outlook item. So, you could check the attached file - the
Attachment
that was added to the item is passed as a parameter and encrypt it if required. For example:Note, you can find the cached file on disk. You can find the actual path in the windows registry: