CmdID

CmdID / Commands

mailx

Send and receive mail. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Send mail (the content should be typed after the command, and ended with <Ctrl d>)

mailx --subject "subject" to_addrIdentify

Send mail with content passed from another command

echo "content" | mailx --subject "subject" to_addrIdentify

Send mail with content read from a file

mailx <content.txt --subject "subject" to_addrIdentify

Send mail to a recipient and CC to another address

mailx --subject "subject" --cc cc_addr to_addrIdentify

Send mail specifying the sender address

mailx --subject "subject" --from-address from_addr to_addrIdentify

Send mail with an attachment

mailx --attach path/to/file --subject "subject" to_addrIdentify