不安装 SMTP 服务发送电子邮件[WSH][企业脚本]
2004-05-08 00:40
435 查看
不安装 SMTP 服务发送电子邮件[WSH][企业脚本]
Send Email without Installing the SMTP Service
DescriptionDemonstration script that uses CDO to send email from a computer where the SMTP Service has not been installed. Designed to work on Microsoft's corporate network.
Script Code Set objEmail = CreateObject("CDO.Message")
objEmail.From = "admin1@fabrikam.com"
objEmail.To = "admin2@fabrikam.com"
objEmail.Subject = "Server down"
objEmail.Textbody = "Server1 is no longer accessible over the network."
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _
"smarthost"
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objEmail.Configuration.Fields.Update
objEmail.Send
For online peer support, join the microsoft.public.windows.server.scripting community on the msnews.microsoft.com news server. To provide feedback or report bugs in sample scripts or the Scripting Guide, please contact Microsoft TechNet.
相关文章推荐
- SMTP服务发送电子邮件示例的总结(带上传的附件)
- 利用SMTP服务发送电子邮件
- Python通过smtp服务发送电子邮件给指定用户(适用于Zabbix邮件报警)
- 在Windows Server 2008R2中安装配置SMTP服务
- c#简单易用的短信发送服务 悠逸企业短信服务
- PHP短信发送服务 youe短信企业服务
- sql server2014企业版无人值守批处理脚本自动化安装
- Python 使用第三方 SMTP 服务发送邮件(qq邮箱)
- Windows server 2008企业CA服务安装
- 在Windows Server 2008R2中安装配置SMTP服务
- Msdn纯净版windows10企业版2015长期服务版安装激活密钥及其下载地址
- 在windows powershell中利用脚本自动安装和配置DHCP服务
- shell脚本实现nfs服务安装配置,共享文件分发
- 编写安装配置DHCP服务脚本
- 在sharepoint 2010 中 安装和配置smtp和pop3的电子邮件
- CentOS6.x生产环境下一键安装mono+jexus的脚本,自启动,带服务,版本号自控
- 编写安装配置LAMP服务脚本
- centos安装tomcat (用shell脚本安装为服务)
- 通过smtp验证发送邮件的perl脚本
- Oracle 10G 使用UTL_SMTP发送中文电子邮件[Z]