我希望 Outlook 每 30 分钟实时向服务器发送一次电子邮件。有没有办法我可以在这个当前代码或通过批处理文件中做到这一点?制作计划任务不可用且没有第三方软件
set objOutlook = CreateObject( "Outlook.Application" )
set objMail = objOutlook.CreateItem(0)
strMessage = "Test"
ON ERROR RESUME NEXT
With objMail
.From = "email"
.To = "email"
.Subject = "Test"
.Body = strMessage
.Save
end with
objMail.OriginatorDeliveryReportRequested = True
objMail.Display
objMail.Send
WScript.quit