通过MS Exchange与VBScript发送电子邮件的方法 [英] Ways to send E-Mails over MS Exchange with VBScript

查看:149
本文介绍了通过MS Exchange与VBScript发送电子邮件的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须编写一个在Windows Server 03上运行的VBScript(没有安装Office,SMTP等),就像这是一个全新的安装)。此脚本应通过MS Exchange Server(在另一台服务器上)发送电子邮件。所以现在我和管理这些服务器的团队负责人开会了。要准备我想知道我必须通过MS Exchange从VBScript发送电子邮件(还包括如何使用Exchange Server进行身份验证)?



就我的谷歌而言,CDO(只有SMTP?)有一种方法,可以使用当前用户进行身份验证,或者使用明文用户名和密码。



编辑:
或者我错误,只有SMTP才能通过Exchange Server发送电子邮件?另外,只有使用明文/使用当前证书的身份验证?



干杯,
Gregor

解决方案

还有其他方法。



我更喜欢Exchange WebDav以前版本的Exchange服务器



,并使用Exchange WebServices与最新版本的Exchange。



这些方法不需要客户端安装,因此可以在任何地方使用。 p>

WebDav: http://www.msexchange.org/articles/Access-Exchange-2000-2003-Mailbox-WebDAV.html
WebService: http://msdn.microsoft.com/en-us/library/aa563009(v = EXCHG.140)。 aspx



EWS脚本示例: http://blogs.msdn.com/b/vikas/archive/2007/11/22/howto-ews-call-exchange-web-service-from-vbscript.aspx


I have to write a VBScript which will run on a Windows Server 03 (no Office, SMTP, etc. installed - like it's a fresh installation). This script should send E-Mails over an MS Exchange Server (on another server). So now I have a meeting with the head of the team managing those Servers. To prepare I'd like to know what ways I have to send an E-Mail from a VBScript over an MS Exchange (also including how to authenticate with the Exchange Server)?

As far as my googling goes there is one way with CDO (only SMTP?) which can use the current user for authentication or a clear text username & password.

edit: Or am I mistaking and there is only SMTP for sending E-Mails over Exchange Server? Also that there is only authentication with clear text / using current credentials?

Cheers, Gregor

解决方案

There are other ways as well.

I'd prefer Exchange WebDav for previous versions of Exchange server

and use Exchange WebServices with the latest version of Exchange.

These method requires no client install so can be used anywhere.

WebDav: http://www.msexchange.org/articles/Access-Exchange-2000-2003-Mailbox-WebDAV.html WebService: http://msdn.microsoft.com/en-us/library/aa563009(v=EXCHG.140).aspx

EWS scripting sample: http://blogs.msdn.com/b/vikas/archive/2007/11/22/howto-ews-call-exchange-web-service-from-vbscript.aspx

这篇关于通过MS Exchange与VBScript发送电子邮件的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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