how to send email from terminal

You want to send an email right t from your terminal and don’t want to open  browser or email client  , well no big deal you can send right from  your terminal .
you have to install an application name “sendemail”
you can install it by typing

$ sudo apt-get install sendemail

and you are ready to go

2nd_thumb[2]

$ 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 your email
sendemail –-help to see all options , or you can read manual using man sendmail

Result

2nd_thumb[7]

Tagged With : -
Show Comment (1)