Mailx command allows to read or send email from command line.
echo "Hello world" | mailx -s "My first mail message using mailx command line" localusername@localhost
mailx
mailx -f