How to send emails via the command line

view story

http://www.linuxandlife.com – Im not talking about a text-based email client that allows you to read and send mails on the terminal like Mutt here. In this article, I will show you a simple way to send emails via the command line. The tools you will need are "msmtp" and " heirloom-mailx". These two are in the repository of most distros so you can install them easily. In Ubuntu-related distros, "heirloom-mailx" is installed by default so you just need "msmtp" then. After got the two packages installed, you will need to create two config files to put in the home folder (or put in /etc/ if you want to use as root). The firs (Distributions)