commands – job 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
- job add
- job calendar
- job changes
- job command
- job condition
- job content
- job copy
- job delay
- job delete
- job description
- job diff
- job email
- job enable/disable/bypass
- job history
- job host
- job image
- job input
- job list
- job output
- job property
- job schedule
- job show
- job sql
- job start/kill
- job status
- job subject
- job timezone
- job trigger
- job url
- job user
- job variables