Testing Mail From the Command Line on Ubuntu

Install mailutils

sudo apt-get install mailutils

Send some test piped into the mail command

echo "testing" | mail -s Test user@emailhost.com

Check the email address listed above