A simplified syntax with some commonly used options is:
mailx [-s subject] [-c cc-addr] to-addr . . . -s subject of email (could be inserted later) -c send carbon copies to a user or users
The end of message is indicated by a single '.' or by hitting ctrl+d.
By default, messages are composed in mailx line by line, without the use of a text editor. The user may issue a command to mailx by entering a line that begins with a tilde (~). The ~v command causes mailx to invoke a text editor (defined by the VISUAL environment variable) on the message in progress, saved in a temporary file.
$ mailx -s "From mailx" firstname.lastname@example.org
type the body ... EOT (Ctrl+d) $
- History of mail and mailx from the Heirloom Project
- mailx Tutorial from the engineering Dpt. at Purdue University
|This software article is a stub. You can help Wikipedia by expanding it.|