Step 1- Install sendemail
Code: Select all
sudo apt-get install sendemail
Code: Select all
$sendEmail
Step 3- Sending an email
Code: Select all
sendEmail -f myaddress@isp.net \
-t myfriend@isp.net \
-s relay.isp.net \
-u "Test email" \
-m "Hi , this is a test email."
-t = destination email address (MUST be valid)
-s = outgoing relay, look this up, for Cell C this is mail.cmobile.co.za
-u = Subject line (all text MUST be in quotes i.e. "")
-m = message body (all text MUST be in quotes i.e. "")
As simple as that.