malama% mail fbaggins
Subject: Fear and Loathing in Las Vegas
We were somewhere around Barstow on the edge of the desert
when the heat began to take hold.
^D
malama%
If you happen to send mail to a user who does not exist, you will receive an error message and mail from <Mailer-Daemon>, which will include your letter.
It is possible to use an editor, such as vi or emacs, to compose messages. The editor will allow you to freely change the message as you create it. To use the editor type mail and the username. mail will then prompt you for the subject. When you are ready to begin typing the message type ~v [return]. This command will start the editor vi (or whatever VISUAL editor you have defined in your ~/.mailrc file) so insert the text normally. The ~e command will invoke whatever you have defined as EDITOR (e.g. setenv EDITOR emacs). At the end of the message exit the editor in the usual fashion. You will now be back in the mail mode so press ^D to finish the letter.
If you are already in mail and wish to type a message then type m followed by the username. mail will respond with the usual prompt Subject: .
If you change your mind partway through about sending the message, quit the editor (if you were in one) and then type ctrl-C twice. This will cancel the message, and return you to mail if that is where you started.