Send mail (the content should be typed after the command, and ended with Ctrl+D)

mailx

mailx -s "{{subject}}" {{to_addr}}

click the source code to copy install mailx on any operating system with command-not-found.com