In case you do not know you can send email messages from the terminal to any email address or user. I find it to be particularly useful to send emails to myself after my computer completes automated tasks.
One such task is when I used a cron command to backup my computer weekly. It is important to me to know this was done successfully without having to dig through log files.
Here is how to setup sendemail ...
First
Code:
sudo apt-get install sendemail
Code:
sudo apt-get install libio-socket-ssl-perl
These two commands get all the needed files from the repositories and installs them. Now to actually send a message.
Code:
sendEmail -f username@foo.com -t destination@foo.com -cc carboncopy@foo.com -u "Message title" -m "The body of the message" -s smtp.foo.com:25 -xu username -xp password
This will work with a variety of smtp hosts including gmail. To use gmail change the last line to this ...
Code:
sendEmail -f username@foo.com -t destination@foo.com -u "Message title" -m "The body of the message" -s smtp.gmail.com:25 -xu username -xp password
thanks to 'lovinglinux' for helping me with this
Bookmarks