Sends or receives mail.
The mhmail command composes, sends, and files messages. To file a message, enter the mhmail command without any flags. The default folder is $HOME/inbox.
If you specify one or more user addresses with the User parameter, the mhmail command accepts text from your terminal and composes a message. You can end the message text by pressing the Ctrl-D key sequence. The mhmail command sends a copy of the message to each specified address.
| Item | Description | 
|---|---|
| -body "String" | Sends a message with the specified string as the body. You must enclose the string in quotes. When you specify the -body flag, the mhmail command does not accept text from the terminal. | 
| -cc User... | Sends a copy of the message to the specified users. The mhmail command puts the addresses in the cc: field. | 
| -from User... | Places the specified user address in the From: field of the message. | 
| -help | Lists the command syntax, available switches (toggles), and
version information. Note: For MH, the name of this flag must be fully spelled out. | 
| -subject "String" | Places the specified text string in the Subject: field of the message. | 
mhmailIncorporating new mail into inbox...
65+  04/08 jim@athena.a   Meeting        <<The meeting will
66   04/08 jim@athena.a   Schedule       <<Schedule changemhmail jamie@venus -subject "Schedule Change"
The system waits for you to enter the text of the message. After completing the last line of the text, press the Enter key and then the Ctrl-D key sequence to send the message.| Item | Description | 
|---|---|
| /var/spool/Mail/$USER | Defines the location of the mail drop. | 
| /usr/bin/mhmail | Contains the mhmail command. |