emailing files from the command line

From Sharkysoft Wiki
Jump to: navigation, search

Sometimes you just want a quick and easy way to email someone a file from the command line. Here's one method that works quite well:

mime-construct --file-attach <file name> --to <email address> --subject <subject text> --string <message body>

If your system does not support the mime-construct command, it is probably because you don't have the mime-construct package installed. You can install this package by typing:

sudo apt-get install mime-construct
Personal tools
Namespaces

Variants
Actions
Navigation
Tools