send a mail in command line in Ubuntu

Reading Time: < 1 minute  By default the binary "mail" is not installed on Ubuntu. At least it’s not on my brand new Ubuntu 10.10.
You need to setup the package mailutils.

apt-get install mailutils

Then you can send an email using the command line:

ls | mail blabla@gmail.com
Reading Time: < 1 minute

 By default the binary "mail" is not installed on Ubuntu. At least it’s not on my brand new Ubuntu 10.10.
You need to setup the package mailutils.

apt-get install mailutils

Then you can send an email using the command line:

ls | mail blabla@gmail.com

By Marc Olivier Meunier

Marc has spent the past 7 years putting oil on the fire of a hyper growth ad tech company. At Smartly.io he was in charge of scaling the support and its culture. He leads by example and puts a lot of emphasis on diversity and inclusion, constantly working to create a safe environment. A warm leader with a passion for memorable experiences and innovation.
Find me on Linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *