Forrest logo
back to context overview

mailx

List of commands for mailx:

  • mailx:tldr:906af mailx: Send mail with content read from a file.
    $ mailx -s "${subject}" ${to_addr} < ${content-txt}
    try on your machine
    explain this command
  • mailx:tldr:a42f7 mailx: Send mail specifying the sender address.
    $ mailx -s "${subject}" -r ${from_addr} ${to_addr}
    try on your machine
    explain this command
  • mailx:tldr:b0ca6 mailx: Send mail with an attachment.
    $ mailx -a ${filename} -s "${subject}" ${to_addr}
    try on your machine
    explain this command
  • mailx:tldr:f36aa mailx: Send mail with content passed from another command.
    $ echo "${content}" | mailx -s "${subject}" ${to_addr}
    try on your machine
    explain this command
  • mailx:tldr:f3e20 mailx: Send mail (the content should be typed after the command, and ended with `Ctrl+D`).
    $ mailx -s "${subject}" ${to_addr}
    try on your machine
    explain this command
  • mailx:tldr:feeaa mailx: Send mail to a recipient and CC to another address.
    $ mailx -s "${subject}" -c ${cc_addr} ${to_addr}
    try on your machine
    explain this command
back to context overview