bc-clijob 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 the address domain is example.com, the email will be echoed. Echo jobs support the properties echo_run_min, echo_run_max & echo_success, see 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, and clear any previously set command, delay, host, input, user & webhook values, as they are unused by email jobs.

Example

Set an email address

BeyondCron % job email /examples/email/simple john.smith@example.com
BeyondCron % job list full simple

----------- ---------------------------- 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 ------- BeyondCron job /examples/email/trigger Success   Content ------- Job: /examples/email/trigger Result: Success Time: 11/09/2017 15:09:13 JST Value: 0 Message:

See also