Install sendemail by entering the following commands in the terminal:
sudo apt update sudo apt install sendemail
Description:
lightweight, command line SMTP email client
SendEmail is a lightweight, completely command line based, SMTP email agent. It was designed to be used in bash scripts, Perl programs, and web sites, but it is also quite useful in many other contexts. . SendEmail is written in Perl and is unique in that it requires no special modules. It has a straight forward interface, making it very easy to use.
Homepage: http://www.caspian.dotconf.net/menu/Software/SendEmail/
Version: 1.56-5
Section: universe/mail