Windows8创建基本任务,发送电子邮件和显示消息已弃用,如何解决?

2025-05-17 02:53:10
推荐回答(1个)
回答(1):

这样的话 可以使用脚本来发送,将如下代码保存为vbs脚本
NameSpace = "http://schemas.microsoft.com/cdo/configuration/"
Set Email = CreateObject("CDO.Message")
Email.From = "发件人邮箱地址"
Email.To = "收件人邮箱地址"
Email.Subject = "邮件主题"
Email.Textbody = "邮箱内容"
With Email.Configuration.Fields
.Item(NameSpace&"sendusing") = 2
.Item(NameSpace&"smtpserver") = "smtp.xxx.com"
.Item(NameSpace&"smtpserverport") = 25
.Item(NameSpace&"smtpauthenticate") = 1
.Item(NameSpace&"sendusername") = "请填写邮箱登录名"
.Item(NameSpace&"sendpassword") = "邮箱密码"
.Update
End With
Email.Send