From Linux mailx command help and examples
mailx is an intelligent mail processing system, which has a command syntax reminiscent of ed with lines replaced by messages. It is based on Berkeley Mail 8.1, is intended to provide the functionality of the mail command, and offers extensions for MIME, IMAP, POP3, SMTP, and S/MIME. mailx provides enhanced features for interactive use, such as caching and disconnected operation for IMAP, message threading, scoring, and filtering. It is also usable as a mail batch language, both for sending and receiving mail.
I bet a beer that most of you gravely underestimate the power of the good, old mail
command on a GNU/Linux OS, at least.
I did.