This little vbscript for sending an smtp message is useful to put as the last task of a Altiris Deployment Server job so that it emails the tech after the job has completed successfully.
The following DS variables are used:
%JOBUSER% -- the person who ran the job in Deployment Console
%NAME% -- the name of the computer in Deployment Console
%JOBNAME% -- the name of the job that was run in Deployment Console
In my version of this script, I have the "domain.com" portion in the From & To sections set to the domain of my organization. The Textbody section can have as much info as you want.
' Notify Tech when complete 'vbscript ' ===== Send Notification E-Mail =====
Set objEmail = CreateObject("CDO.Message")
objEmail.From = "%JOBUSERemail@example.com"
objEmail.To = "%JOBUSERfirstname.lastname@example.org"
objEmail.Subject = "%JOBNAME% | %NAME%"
objEmail.Textbody = "Altiris Deployment Solution job: %JOBNAME% was run on computer: %NAME% by %JOBUSER%."
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
' ===== Destroy Objects when Finished =====
Set objEnv = Nothing Set WshShell = Nothing
Edit: Someone found out this only works if you have security turned on in the console.