When no <email> is specified, the default (comma separated list of) recipients are taken from environment variable ‘EVL_EMAIL_TO’.
When environment variable ‘EVL_MAIL_SEND’ is set to 0, then no e-mails are sent by this command. Useful to be set for non-production environments.
‘Mail’ command will call command from environment variable ‘EVL_MAIL’ which suppose to be standard Unix command mail with possible other parameters.
is to be used either in EVL Job or in EVL Workflow structure definition file, i.e. in ‘evs’ or ‘ews’ file.
- evl mail
is intended for standalone usage, i.e. to be invoked from command line.
EVS is EVL job definition file and EWS is EVL Workflow definition file, for details see man evl-evs(5) or ewf-ews(5).
Mail <subject> <message> [ <email>[,...] ] [-a <attachment>]... [-c <cc_email>[,...]] [-b <bcc_email>[,...]] evl mail <subject> <message> [ <email>[,...] ] [-a <attachment>]... [-c <cc_email>[,...]] [-b <bcc_email>[,...]] evl mail ( --help | --usage | --version )
- -a <attachment>
attach the given file to the message, can be used several times to add more files
- -b <bcc_email>[,...]
send blind carbon copies
- -c <cc_email>[,...]
send carbon copies
print this help and exit
print short usage information and exit
print version and exit
- Following setting will e-mail carbon copy of every e-mail to ‘admin@server’:
export EVL_MAIL='mail -c "admin@server"'
Following invocation of "Mail":
Mail "Job Failed" "Job extract_file_billing failed."
will actually run:
echo "Job extract_file_billing failed." | \ mail -c "admin@server" -s "Job Failed" "$EVL_MAIL_TO"
and log appropriate information into EVL or EWF log.
- For non-production environment it worth to set:
so then in example 1. you will obtain only such a warning in a log file:
EVL_MAIL_SEND is set to 0, so no e-mail was sent to \ "$EVL_MAIL_TO" with subject "Job Failed".