mailx
TLDR
Send email
SYNOPSIS
mailx [options] [recipients]
DESCRIPTION
mailx is an enhanced mail command. It supports SMTP, attachments, and more features than basic mail.
The tool is POSIX-compatible with extensions. It handles both sending and reading email.
mailx sends and reads email.
PARAMETERS
RECIPIENTS
Email addresses.-s SUBJECT
Email subject.-a FILE
Attach file.-c ADDR
CC recipients.-S VAR=VALUE
Set variable.-f FILE
Read from mailbox.--help
Display help information.
CAVEATS
Multiple implementations exist. SMTP config varies. May need s-nail or heirloom-mailx.
HISTORY
mailx evolved from the original Unix mail command, adding features like MIME support and SMTP.
