emailing files from the command line

From Sharkysoft Wiki
Revision as of 17:08, 17 January 2011 by Sharky (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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