mailx - a useful command line mailer, quick mail reader

so how do you use it?
try this:
mailx -n
(shows latest new messages or the first 50 if none)
mailx and then ? to get help.
mailx and then z for the next 50 messages starting from 0

q or quit gets you out of the ? prompt holding onto the messages.

sending messages seemed a little trickier:

? mail bill@gates.net
Subject: my first mailx
hello
^C
(Interrupt—one more to kill letter)
^C”/[deleted]/dead.letter” 2/7
Interrupt
? ?

hmm. how to send it. hmm.

Leave a Comment