Need to email from your linux command line? Assuming the underlying pieces are configured correctly (run the 1st example to see) here are the basics…
Send a test email
mail -s "Hi there" [email protected]
Include some body text…
echo "This is some body text" | mail -s "Hi there" [email protected]
Email the contents of a file to someone…
mail -s "My Subject" [email protected] < /path/to/your/file.txt
You can [find more here][1][1]: http://www.simplehelp.net/2008/12/01/how-to-send-email-from-the-linux-command-line/