commands – job email
Set the email address of an email job.
Usage
job email name address
where
name | of job whose email address to set. |
address | to send message to. |
If address is within the domain example.com , the email will be echoed. Echo jobs support the properties echo_run_min , echo_run_max & echo_success , see bc-echo for full details. |
write on name
subject & message for setting the email jobs subject and message.
this command will set the job type to email.
Example
Set an email address
BeyondCron % job email /examples/email/simple john.smith@example.com
BeyondCron % job show $$
----------- ---------------------------- Name /examples/email/simple Description Send a message to John Smith ... Email john.smith@example.com ...
Echo an email
When the email address domain is example.com
, rather than sending an email, the contents of the email, after variable expansion, will be echoed.
BeyondCron % job output /examples/email/triggered
To: john.smith@example.com Subject: Hello John Message: Today is Friday
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 enable/disable/bypass
- job history
- job host
- job image
- job input
- job list
- job message
- 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