mailx [options] [users]Read mail, or send mail to other users. For a summary of commands, type ? in command mode (e.g., when reading mail) or ~? in input mode (e.g., when sending mail). The start-up file .mailrc in the user's home directory is useful for setting display variables and for defining alias lists.
On Solaris, /usr/ucb/mail and /usr/ucb/Mail are symbolic links to mailx.
-BDo not buffer standard input or standard output. Solaris only.
-b bccSend blind carbon copies to bcc. Quote the list if there are multiple recipients. Solaris only.
-c ccSend carbon copies to cc. Quote the list if there are multiple recipients. Solaris only.
-dSet debugging.
-eTest for the existence of mail without printing it. Exit status is 0 if mail exists; otherwise 1.
-f [file]Read mail in alternate file (default is mbox).
-FStore message in a file named after the first recipient.
-h nStop trying to send after making n network connections, or "hops" (useful for avoiding infinite loops).
-HPrint mail headers only.
-iIgnore interrupts (useful on modems); same as ignore mailx option.
-IUse with -f when displaying saved news articles; newsgroup and article-ID headers are included.
-nDo not read the system startup mailx.rc or Mail.rc file(s).
-NDon't print mail headers.
-r addressSpecify a return address for mail you send.
-s subPlace string sub in the subject header field. sub must be quoted if it contains whitespace.
-tUse To:, Cc:, and Bcc: headers in the input to specify recipients instead of command-line arguments. Solaris only.
-T fileRecord message IDs and article IDs (of news articles) in file.
-u userRead user's mail.
-UConvert uucp-type addresses to Internet format.
-vInvoke sendmail with the -v option. Solaris only.
-VPrint version number of mailx and exit.
-~Process tilde escapes, even if not reading from a terminal. Solaris only.