Last Updated: February 25, 2016
·
631
· netors

How to send an email from the Ubuntu command line

First you need to have the mutt package installed

sudo apt-get install mutt

Then you execute the following command:

mutt -s "Subject here" -a /path/to/attachment/file.zip your@email.com < /path/to/text/file/with/message.txt