- mail (Unix)
-
mail is a command line email client for Unix and Unix-like operating systems.
Example usage
mail -s "You've got mail" -c cc.rider@example.org somebody@example.com anotherbody@example.net
This sends a message with the subject "You've got mail" to two recipients, somebody@example.com and anotherbody@example.net, and CCs (copies) a third, cc.rider@example.org. The message will be typed after the command is entered and will be ended with Control-D.
Any Unix command sequence that generates text can be used to send a message in one line. For example:
echo "Some message" | mail -s "meeting today" somebody@example.com
This is especially useful for having a system report its status automatically through email.
See also
External links
Unix command-line interface programs and shell builtins (more) File system Processes User environment Text processing Shell builtins Networking Searching Documentation Miscellaneous List of Unix utilities This Unix-related article is a stub. You can help Wikipedia by expanding it.