Sending Email with mail

Despite mail’s unintuitive interface and features, it is a great program to use if you just want to dash off a quick message without fussing with niceties. As Code Listing 11.3 shows, you can send messages while in mail or from the shell prompt. You can also use mail to send files fairly easily.

Code Listing 11.3. Using mail, you can dash off a quick note by including the recipient’s address and the message text.
[ejr@hobbes ejr]$ mail debray Subject: You're in big trouble now! So, anyway, Winchester had perched himself on my stereo turntable (those were sooooo low-tech, weren't they?!). He was waiting for me to turn on the stereo so he could go back to sleep while spinning in circles. I used to let him sleep that way ...

Get Unix Third Edition: Visual Quickstart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.