mailx
Send and receive mail. tldr-pages
On several platforms
Several platforms
Send mail (the content should be typed after the command, and ended with <Ctrl d>)
mailx --subject "subject" to_addrIdentifySend mail with content passed from another command
echo "content" | mailx --subject "subject" to_addrIdentifySend mail with content read from a file
mailx <content.txt --subject "subject" to_addrIdentifySend mail to a recipient and CC to another address
mailx --subject "subject" --cc cc_addr to_addrIdentifySend mail specifying the sender address
mailx --subject "subject" --from-address from_addr to_addrIdentifySend mail with an attachment
mailx --attach path/to/file --subject "subject" to_addrIdentify