Changeset 1837 for box/chris/general/bin/bbackupd/win32/NotifySysAdmin.vbs
- Timestamp:
- 14/09/2007 23:15:18 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
box/chris/general/bin/bbackupd/win32/NotifySysAdmin.vbs
r1830 r1837 66 66 Sub SendMail(from,sendto,subject,body) 67 67 Set objEmail = CreateObject("CDO.Message") 68 Set WshShell = CreateObject("WScript.Shell") 68 69 Dim cdoschema 69 70 cdoschema = "http://schemas.microsoft.com/cdo/configuration/" 71 70 72 With objEmail 71 73 .From = from … … 80 82 End If 81 83 End With 82 objEmail.Send 84 On Error Resume Next 85 rc = objEmail.Send 86 If rc Then 87 WshShell.Exec "eventcreate /L Application /ID 201 /T WARNING " _ 88 & "/SO ""Box Backup"" /D """ & args(0) _ 89 & " notification sent to " & sendto & ".""" 90 Else 91 WshShell.Exec "eventcreate /L Application /ID 202 /T ERROR " _ 92 & "/SO ""Box Backup"" /D ""Failed to send " & args(0) _ 93 & " notification to " & sendto & ".""" 94 End If 83 95 End Sub
Note: See TracChangeset
for help on using the changeset viewer.
