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

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

问题描述

我正在遵循此页面上的代码:

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天全站免登陆