Use the Linux Command Line to Send an Email
2012-08-28
There are a couple of ways to send an email from the Linux command line. One is to set up your machine to work as an SMTP server. That is the more difficult way. An easier and simpler way is to use the following command:
echo "Email body goes here" | mail -s "Email subject goes here" recipientemail@email.com