how to send email from terminal
1 min read
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 sendemailand you are ready to go
$ 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