Sometimes, we need to send email via command lines, specifically for cron jobs or bash scripts. Message and results can be sent automatically when tasks are finished. One of most popular mailing tools is gnu mailutils. Below are the brief steps to install and use mailutils.
1. install the packages:
sudo apt-get install mailutils
sudo apt-get install sharutils (if you’d like to send attachments)
In the progress, one exim4 configuration screen will be prompted out.
View original post 82 more words