How To Send Email From Terminal( method 2)

This is a new ttorial about how to send E-Mails from terminal.
For this you have to install an application name “sendemail”
You can install it by simply typing 

$ sudo apt-get install sendemail

For sending the email just follow the syntax given below
$ sendemail -t (destination address ) –f (from eg. foo@bar.com ) –s (server:port) –xu (smtp server username ) –xp (smtp password) –m (message)
It will use gmail as smtp server to send mail
sendemail –-help to see all options , or you can read manual using man sendmail

 

No comments:

Post a Comment