Ms access 通过宏和旁路安全设置发送电子邮件

Ms access 通过宏和旁路安全设置发送电子邮件,ms-access,Ms Access,我正在使用Office 365进行MS Access和MS Outlook。我有一个宏,它在打开时触发查询并尝试通过电子邮件发送最后一个查询 但是,当我这样做时,它会提示我一个对话框,上面写着: A program is trying to send an email message on your behalf, If this is unexpected, click Deny and verify your antivirus software is up-to-date. For mo

我正在使用Office 365进行MS Access和MS Outlook。我有一个宏,它在打开时触发查询并尝试通过电子邮件发送最后一个查询

但是,当我这样做时,它会提示我一个对话框,上面写着:

A program is trying to send an email message on your behalf, If this is unexpected, click Deny and verify your antivirus software is up-to-date.

For more information about email safety and how you might be able to avoid getting this warning, click Help.

Allow    Deny    Help
到目前为止,我已经尝试过:

进入MS Outlook设置并关闭警告的位置。然而,它仍然给我同样的错误

有什么想法吗

~~编辑~~

在我尝试时添加解决方案想法。以下是故障列表:

In Outlook: Trust Center -> Programmatic Access -> Disable all security
In MS Access: Trust Center -> Macro Settings -> Enable all macros
Run the registery edit to run system in Admin and try the query again.


通过Access发送电子邮件的专业方法是绕过Outlook,使用CDO或…

我使用Access 2010,如果我的Windows防病毒保护是最新的,我不会收到此消息。@June7 anti-virus是最新的。此外,我还使用regedit在我尝试的内容中添加了第三个编辑。您是如何发送电子邮件的?我使用
CDO.Message
将电子邮件从VBA发送到O365,没有问题。我正在Access中使用EmailSendObject宏。我将研究CDO。好的,我已经尝试了一段时间了,我继续得到这个错误:
runtimeerror'-2147220978(8004020e);服务器拒绝了发件人地址。服务器的响应是:客户端未被授权在从
发送邮件期间发送匿名邮件,删除了一些详细信息,因为我不确定是否有东西表明我的特定服务器。您是否有Exchange…您必须设置接收连接器以将尝试发送电子邮件并被阻止的IP列入白名单。我确实有Exchange。我会试试这个建议。