commandsjob 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