codeaprendiz.github.io

DevOps Essentials

View on GitHub

mail

NAME

SYNOPSIS

mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr… [– sendmail-options…]

mail [-iInNv] -f [name]

mail [-iInNv] [-u user]

Description

Mail is an intelligent mail processing system, which has a command syntax reminiscent of ed(1) with lines replaced by messages.

OPTIONS

EXAMPLE

-bash-3.2$ echo "Mail Body" | mail -v -s "Subject" "ankit.rathi@accelya.com"

$ mail -s "$WRKSPZ_BRNC_IN Build Stopped at `date` [Machine:`hostname`]: Build-Locks found" "${SCM_MAIL_G}"<${BLD_LOCK}