(转载)Send Email without Installing the SMTP Service
2004-08-08 00:23
399 查看
Send Email without Installing the SMTP Service
描述Demonstration 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.
脚本代码 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.
免费声明
以上示例脚本不会获得由任何Microsoft标准支持计划或服务项目所提供的支持。这些示例脚本在提交时并未附带任何形式的保证承诺。不仅如此,Microsoft公司还不加限定条件地针对所有默许保证责任加以进一步否认,这其中便包括出于特定目的而针对适销性或适用性所承担的默许保证责任。因使用或执行上述示例脚本及文档资料而导致的全部风险均由读者自行承担。在任何情况下,Microsoft公司及其创作人员、亦或与上述脚本的创意、编制及提交有关的任何人员均无须针对因使用或无法使用上述示例脚本或文档资料所导致的任何损害(其中包括,企业利润损失、经营中断、业务信息丢失及其它经济损失)承担责任;即使Microsoft公司已被告知造成这种损害可能性,上述免责条款依然适用。
相关文章推荐
- The IP you're using to send email is not authorized
- sendBroadcastAsUser——Calling a method in the system process without a qualified user
- How to send Email through external SMTP server on Ubuntu 14.04
- Disable the Outlook warning message when send Dynamics Ax reports to email address
- sendBroadcastAsUser——Calling a method in the system process without a qualified user
- 转载:Effective Code Reviews Without the Pain
- sendBroadcastAsUser——Calling a method in the system process without a qualified user 包含去电流程
- 发送邮件时候遇到了这样的一个错误!Sending the email to the following server failed : smtp.163.com:25
- Configuring git send-email to use Gmail SMTP
- sendBroadcastAsUser——Calling a method in the system process without a qualified user
- [转]How can I install the VS2017 version of msbuild on a build server without installing the IDE?
- No provider available from registry 127.0.0.1:2181 for service com.focussend.email.service.EdmTaskS
- How to test if the server is configured well to send email to external accoun
- how to solve the problem which is the imail software can not send email in wan,but can send email in lan.
- How to Send an Email Using UTL_SMTP with Authenticated Mail Server
- [Windows Azure] Building worker role A (email scheduler) for the Windows Azure Email Service application - 4 of 5.
- How to Send an Email Using UTL_SMTP with Authenticated Mail Server
- python email ==> send 发送邮件 :) [smtplib, email 模块]
- [Windows Azure] Building worker role B (email sender) for the Windows Azure Email Service application - 5 of 5.
- How to Send an Email Using UTL_SMTP with Authenticated Mail Server