mailx is a command-line utility for reading and sending email

mailx is a command-line utility for reading and sending email. It is a variant of the traditional mail command that evolved into many incompatible versions. The mailx command is standardized in POSIX.