Hi,
You can install mailx using the command:
sudo apt-get install mailx
then you can call it in a script:
echo " Here's the Mail Body" | mailx -s "Subject" "
[email protected]" -a "From:you
com>"
Replace "Here's the Mail Body", "Subject", " "
[email protected]" and apparent sender "From:you
com>" as you wish.
If you don't want to use a local mailer you can use ssmtp package instead:
sudo apt-get install ssmtp
will help yu get and install the package. For configuration see the /etc/ssmtp.conf
Cheers,
K.