bc-clijob message

Set the body of an email job.

Usage

job message name message

where
name of job whose message to set.
message of email. See variables for available variables that can be included.

message

Job: {{ trigger.name }}
Result: {{ trigger.result }}
Time: {{ triggerTimestamp }}
Value: {{ triggerValue }}
Message: {{ trigger.message }}

write on name

email & subject for setting the email jobs address and subject.

this command will set the job type to email.

Examples

Set a static email message

BeyondCron % job message /examples/email/simple Hello John
BeyondCron % job list full simple

----------- -------------------------------- Name /examples/email/simple Description Send a message to John Smith ... Message Hello John ...

Set a message which includes template variables

BeyondCron % job message /examples/email/triggered Job: {{ trigger.name }}\nResult: {{ trigger.result }}\nReason: {{ trigger.message }}\nTime: {{ trigger.time }}
BeyondCron % job list full triggered

----------- -------------------------------- Name /examples/email/triggered Description Send a message when tiggered ... Message Job: {{ trigger.name }} Result: {{ trigger.result }} Reason: {{ trigger.message }} Time: {{ trigger.time }} ...

See also