sendMail - noetl/noetl GitHub Wiki

Parameters

None

Key Variables

  • mailSubject: project name; specified in the JSON config file
  • mailList: send email to emails on the mailList; specified in the config file
  • mailCmd: command to execute, specifying the subject, list, and log file

Functionality

Executes the mail command, which sends a notification via mail, and writes information to the log file, including the exitCode (return code from running the mail command) and the mail command.

Except Statement

If an error arises, the except block writes to the log file, recording the time, the mailing error code, and the mail command.

Return Value

None