T
Tony Liu
Hello,
Configuring it as a startup script works. Works too as a logoff script. But
not working for shuttdown script. My script is as follows:
Dim oShell
Set oShell = CreateObject("Wscript.Shell")
Set objEmail = CreateObject("CDO.Message")
objEmail.From = "(e-mail address removed)"
objEmail.To = "(e-mail address removed)"
objEmail.Subject = oShell.ExpandEnvironmentStrings("is shutting down by " )
objEmail.Textbody = now
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _
"smail2.superb.net"
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objEmail.Configuration.Fields.Update
objEmail.Send
Which configuration should I check?
Thanks
Tony
Configuring it as a startup script works. Works too as a logoff script. But
not working for shuttdown script. My script is as follows:
Dim oShell
Set oShell = CreateObject("Wscript.Shell")
Set objEmail = CreateObject("CDO.Message")
objEmail.From = "(e-mail address removed)"
objEmail.To = "(e-mail address removed)"
objEmail.Subject = oShell.ExpandEnvironmentStrings("is shutting down by " )
objEmail.Textbody = now
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _
"smail2.superb.net"
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objEmail.Configuration.Fields.Update
objEmail.Send
Which configuration should I check?
Thanks
Tony