commandsjob 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: {{ event.name }}
Result: {{ event.result }}
Time: {{ eventTimestamp }}
Value: {{ eventValue }}
Message: {{ event.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 show $$

----------- -------------------------------- 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: {{ event.name }}\nResult: {{ event.result }}\nReason: {{ event.message }}\nTime: {{ event.time }}
BeyondCron % job show $$

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

See also