Computersnyou

how to send email from terminal

Posted on  9/4/2011

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]
2nd_thumb[2]

$ sendemail -t (destination address ) –f (from eg. [email protected] ) –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]
2nd_thumb[7]

  • Home
  • About