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
Written by Marduk
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Linux
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#