Sends and receives electronic mail
mail [-s subject] user-list
mail -f [filename]
The mail utility sends and receives electronic mail in a text environment. Although there are many newer MUAs (mail user agents), mail remains useful in specific situations, especially for a system administrator.
When you use mail to send someone a message, the system puts the message in that user's mailbox, typically /var/spool/mail/login-name, where login-name is the login name of the user you are sending the message to. When you use mail to read messages, mail normally reads from your mailbox and stores the messages you have read in ~/mbox.
The way mail appears and functions depends to a large extent on the mail environment. When you call mail, it establishes ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access