禁止程序试图访问我的邮件的对话框警告 [英] Suppress dialog warning that a program is trying to access my mails

查看:9
本文介绍了禁止程序试图访问我的邮件的对话框警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注此页面中的代码:如何在 Outlook 中为规则向导创建脚本

I am following the code from this page: How to create a script for the Rules Wizard in Outlook

这就是我所拥有的:

Public Sub GetMails(Item As Outlook.MailItem)

    MsgBox "Mail message arrived: " & Item.SenderEmailAddress
    MsgBox "Mail message arrived: " & Item.Subject
    MsgBox "Mail message arrived: " & Item.Body

End Sub

我设置了一个规则来运行这个宏.每次运行此脚本时,都会出现一个关于程序如何尝试访问我的邮件的对话框.

I set a rule to run this macro. Every time this script runs there is a dialog about how a program is trying to access my mails.

如何使用 VBA 摆脱这种情况,或者 Outlook 中是否有任何配置选项以防止出现这种情况?

How can I get rid of this using VBA or is there any configuration option in Outlook so that this does not appear?

我用谷歌搜索了这个,发现一些网站提供 C# 和 VB.net 的代码,但没有提供 VBA 的代码.

I have googled for this and found some sites giving code for C# and VB.net but none for VBA.

推荐答案

添加此选项是为了防止恶意脚本将 Outlook 变成群发邮件或其他不良内容.

This was added to prevent malicious scripts from turning Outlook into a mass mailer or other bad things.

您可以在工作站上关闭此功能,但如果您想将您的应用程序分发给其他用户,则只能通过创建自己的 Outlook 插件或使用诸如 救赎.

You can turn this off on your workstation, but if you want to distribute your application to other users, you can get rid of this only by creating your own Outlook Addin or use a 3rd-party tool like Redemption.

这篇关于禁止程序试图访问我的邮件的对话框警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆