mail - send or read mail
mail [-e] [-f file]
mail name ...
You can use the mail(1) utility to read or send mail messages. It is a minimal environment.
To read mail, invoke mail(1) without any arguments. The mail(1) utility opens your mailfile (or the mailfile specified with the -f option). The default mailfile is /var/mail/name, where name is your login name, including your domain name. Additional commands available during mail reading sessions are described in this topic.
To send mail, invoke mail(1) with the name of a user as the operand. The mail(1) utility then takes standard input up to the end of file or a line consisting of only a dot character (.) and adds it to the mailfile of the user name.
The mail(1) command takes the following options:
On startup, the mail(1) utility reads the startup file /etc/mail.rc, which contains commands (as documented in the mailx(1) reference page). It then reads the startup file $HOME/.mailrc.
The mail(1) utility accepts the following commands:
The mail(1) command can exit with one of the following:
The mail(1) command makes use of the following environment variables, if set:
The mail(1) utility makes use of the following files:
The mail(1) and the mailx(1) commands are the same image. If invoked as mail(1), it behaves as mail(1); if invoked as mailx(1), it behaves as mailx(1). When invoked as mail(1), it ignores the contents of the mailx(1) startup files (/etc/mailx.rc and $HOME/.mailrc).
The mail(1) command by itself has no ability to send mail to users on other hosts on the network. That requires a mail routing agent and a mail transfer agent, neither of which is provided with Interix.
The mail(1) command is actually the mailx(1) command; if invoked as mail(1), it behaves as described on this page.
In all other ways, mail(1) behaves as though it were mailx(1) with the following options set:
See the mailx(1) reference page for more details.
mailx(1)