Job_ReportStatus
Description
Section titled “Description”Report job status to sToEmail. The SMTP Server has to accept unsolicited emails in order for the function to work properly
Copying the result of this function into bStatus could flip a failing script to a succeeded script. Reference the example where the result is saved to xStatus
Syntax
Section titled “Syntax”Job_ReportStatus(sSMTPServer,sToEmail,sBody,bJobStatus) As Boolean
Parameters
Section titled “Parameters”sSMTPServer (String)
Section titled “sSMTPServer (String)”SMPTServer
sToEmail (String)
Section titled “sToEmail (String)”Email recipient address
sBody (String)
Section titled “sBody (String)”Email text
bJobStatus (Boolean)
Section titled “bJobStatus (Boolean)”Job Status
Example
Section titled “Example”If Not bStatus Then xStatus = Job_ReportStatus("SMTPServer", "[email protected]", "Job Reporting is started, and user is informed", bStatus)If Not xStatus Then Job_WriteLog("Custom", "Unable to send mail", bStatus, true)