title bounce
section 1
project bgscripts-core
volume General Commands Manual
date July 2020
=====
NAME
  send - send email from command line
SYNOPSIS
  send [-d {0..10}] [-uV] [-h|-H] [-s <subject line>] [-f <fromemail>] [<infile>] [email1@example.com [email2@example.com ...]]
OPTIONS
  -d {0..10}  Set debug level, with 10 as maximum verbosity.
  -u --usage  Show help message.
  -V --version  Show version number.
  -h --html   Add html headers, and edit the contents to include <html> tags.
  -H          Add html headers, and assume content is already in html format.
  -s <subjectline> Subject line of message
  -f --from <fromemail>  Set value of "from:" header.
  <infile>  Use contents of this file as message. Required if stdin is not provided.

  EMAIL ADDRESSES up to 10 email addresses, each as their own parameter.
DESCRIPTION
  An old and thin wrapper for sendmail, `send(1)` sends an email based on parameters and standard input.
EXAMPLES
Use standard input or pass a filename.

    send -hs "example subject" /tmp/file.log root@hostname
    cat STAR.log | send -h
AUTHOR
  <bgstack15@gmail.com>
COPYRIGHT
  CC-BY-SA 4.0
BUGS
  Probably does not work as well as it used to, back when the author was on a homegenous CentOS network.

  Sendmail is hardcoded.
SEE ALSO
`sendmail(1)`
