此脚本使用 CDO 发送测试电子邮件消息。
Visual Basic
Set objEmail = CreateObject(“CDO.Message”)
set objConf = CreateObject(“CDO.Configuration”)
Set objFlds = objConf.Fields
With objFlds
.Item(“http://schemas.microsoft.com/cdo/configuration/sendusing”) = 2
.Item(“http://schemas.microsoft.com/cdo/configuration/smtpserver”) = “XXX-ex100″
.Item(“http://schemas.microsoft.com/cdo/configuration/smtpserverport”) = 25
‘.Item(“http://schemas.microsoft.com/cdo/configuration/smtpauthenticate”) = cdoBasic
.Update
End With
Set objEmail.Configuration = objConf
objEmail.From = “ron.nixon@fastmail.us”
objEmail.To = “users.name@abc.com”
objEmail.Subject = “All done!”
objEmail.Textbody = “…here you go…”
objEmail.Addattachment “C:\directory name of file\filename”
objEmail.Send
- 微软发布Azure PlayFab公众预览 - 2021年10月22日
- 微软发布全新云计算资料分析工具Azure Synapse - 2020年12月15日
- Exchange Server 版本号和发行日期汇总 - 2020年9月21日
还没有评论