在2013环境中发送电子邮件崩溃 [英] Send email crashes in 2013 Environment

查看:130
本文介绍了在2013环境中发送电子邮件崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在学习如何通过可视化基本脚本控制不同的Office应用程序。有一点我有我的脚本处理Office 2010套件,但后来我将所有内容升级到2013.现在我的脚本坏了。

I've been learning how to control different Office applications through visual basic scripts. For a little I had my script dealing with the Office 2010 suite but then I upgraded everything to 2013. Now my script is broken.

此时我所要做的就是自动向某人发送电子邮件。我正在尝试使用Microsoft.Office.Interop界面来创建Outlook电子邮件并发送它。出于某种原因,每次邮件尝试发送时都会因E_ABORT错误而崩溃。
我一直在研究这个问题,我认为它可能与Outlook的安全性有关,但它可能完全不同。

At this point all I'm trying to do is automate sending an email to someone. I'm trying to use the Microsoft.Office.Interop interface to create an outlook email and send it. For some reason every time the mail tries to send it crashes with an E_ABORT error. I've been looking into this issue and I think it might have something to do with the security with outlook but it could be something else entirely.

我已经检查了信任中心和各种其他设置中的设置,它似乎没问题,但我必须遗漏一些东西。这种情况在2010年没有发生,但现在似乎是一个问题。  有没有人知道是什么原因引起的?任何
有用的提示或文章将不胜感激。谢谢高级! 

I've checked the settings in the trust center and various other settings and it seems to be alright but I must be missing something. This didn't happen in 2010 but now it seems to be a problem.  Does anyone know what could be causing this? Any helpful tips or articles would be greatly appreciated. Thanks in advanced! 

推荐答案

Hello Mike,

Hello Mike,

>出于某种原因,每次邮件尝试发送时都会发生崩溃并出现E_ABORT错误。

> For some reason every time the mail tries to send it crashes with an E_ABORT error.

什么行代码确切地触发异常?您是否尝试调试代码?

What line of code exactly fires an exception? Did you try to debug the code?

无论如何,您似乎在Outlook中面临标准的安全提示。有时代替对话框窗口,您可能会在代码中出错。 "安全"在这种情况下,所谓的"对象模型防护"是指所谓的"对象模型防护"。触发安全性
会提示并阻止对某些功能的访问,以防止恶意程序从Outlook数据中收集电子邮件地址并使用Outlook传播病毒和垃圾邮件。这些提示不能简单地关闭,除了在Outlook 2007中运行防病毒应用程序

Anyway, it looks like you faced with a standard security prompt in Outlook. Sometimes instead of a dialog window you may get errors in the code. "Security" in this context refers to the so-called "object model guard" that triggers security prompts and blocks access to certain features in an effort to prevent malicious programs from harvesting email addresses from Outlook data and using Outlook to propagate viruses and spam. These prompts cannot simply be turned off, except in Outlook 2007 with an anti-virus application running.

以下是避免安全提示的解决方法:

There are following workarounds for avoiding security prompts:

1。允许抑制此类提示的第三方组件。

1. Third-party components that allow to suppress such prompts.

2。低级代码(扩展MAPI)不会生成此类问题。您可以考虑在该API周围使用任何第三方包装。

2. A low-level code (Extended MAPI) doesn't generate such issues. You may consider using any third-party wrapper around that API.

3。部署"信任"的Outlook安全设置某些COM加载项或允许所有应用程序对某些功能具有不受限制的访问权限。可以部署的安全设置包括信任特定加载项的选项。对于
示例,可以使用组策略对象或Office自定义工具来信任加载项。

3. Deploy Outlook security settings that "trust" certain COM add-ins or that allow all applications to have unrestricted access to certain features. Among the security settings that can be deployed is an option to trust particular add-ins. For example, add-ins can be trusted using Group Policy Objects or the Office Customization Tool.

您可以在
Outlook" Object Model Guard"开发人员的安全问题
文章。


这篇关于在2013环境中发送电子邮件崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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