mail -s "You've got mail" -c firstname.lastname@example.org email@example.com firstname.lastname@example.org
This sends a message with the subject "You've got mail" to two recipients, email@example.com and firstname.lastname@example.org, and CCs (copies) a third, email@example.com. 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" firstname.lastname@example.org
This is especially useful for having a system report its status automatically through email.
|This Unix-related article is a stub. You can help Wikipedia by expanding it.|