本文介绍了在 Exchange 2010 上运行脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的 Exchange 服务器上收到电子邮件时运行脚本.关于如何实现这一点,我真的没有一个很好的方向.我已经在 VB 中编写了我的脚本并在 Outlook 上对其进行了测试.我错误地认为您可以像在 Outlook 中一样从 Exchange 中的规则运行脚本.

任何帮助将不胜感激.我应该使用 smtpreg.vbs 或 EWS 还是完全不同的东西?

解决方案

Exchange 过去依赖于 事件接收器用于此类处理,但 Exchange 2010 已弃用且不再受支持;正如链接文章所说,处理事件的首选方法现在是开发自定义 传输代理 或使用 Exchange 网络服务.

您可能最感兴趣的是 EWS 事件通知:

http://msdn.microsoft.com/en-us/library/aa579128(v=exchg.140).aspx
http://msdn.microsoft.com/en-us/library/bb204076(v=exchg.140).aspx

最后一个链接也提供了一些代码示例.

像往常一样,由于这更多是面向开发人员的问题,StackOverflow 可能是寻求详细帮助的更好地方.>

I want to run a script when an email is received on my exchange server. I really don't have a great direction on how to implement this. I've written my script in VB and tested it on outlook. I incorrectly assumed you can run a script from a rule in Exchange like you can in Outlook.

Any help would be greatly appreciated. Should I be using smtpreg.vbs or EWS or something completely different?

解决方案

Exchange used to rely on event sinks for this kind of processing, but this is deprecated and not supported anymore in Exchange 2010; as the linked article says, the preferred way to handle events are now either developing a custom transport agent or using Exchange Web Services.

What you may be most interested in are EWS event notifications:

http://msdn.microsoft.com/en-us/library/aa579128(v=exchg.140).aspx
http://msdn.microsoft.com/en-us/library/bb204076(v=exchg.140).aspx

The last link provides some code samples, too.

As usual, since this is more of a developer-oriented question, StackOverflow is probably a better place to ask for detailed help.

这篇关于在 Exchange 2010 上运行脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 19:34