mhmail User ... [ -cc User ... ] [ -from User ... ] [ -subject "String" ] [ -body "String" ]
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.
mhmailThe system displays a message similar to the following:
Incorporating new mail into inbox... 65+ 04/08 jim@athena.a Meeting <<The meeting will 66 04/08 jim@athena.a Schedule <<Schedule changeIn this example, two messages are filed in the inbox file. The subject of the first message is Meeting, and the first line starts with the words The meeting will. The subject of the second message is Schedule, and the first line starts with the words Schedule change.
mhmail 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.
/var/spool/Mail/$USER | Defines the location of the mail drop. |
/usr/bin/mhmail | Contains the mhmail command. |
The inc command, post command.
The mh_alias file format, mh_profile file format.
Mail Overview in AIX Version 4.3 System User's Guide: Communications and Networks.
Peek, Jerry. MH and xmh: E-mail for Users and Programmers. Sebastopol, CA: O'Reilly & Associates, 1992.