[vox-tech] emailing an attachment

GNU Linux vox-tech@lists.lugod.org
Thu, 26 Sep 2002 09:54:49 -0700


On Thu, Sep 26, 2002 at 08:53:31AM -0700, Tim Riley wrote:
> Does anyone know how to email an attachment
> from the command line?

Last time I sent an attachment via command line UUENCODE was in vogue.
For the most part, MIME has largely replaced UUENCODE.

> I would expect it to be:
> mail -s "Here is your graph" --attach-file graph.pdf foo@foo.com

"mail" is an old program. It was written before MIME and UUENCODE. I
am pretty sure you will need to use a different program.

MPACK is one program that should do the trick. Something like:

mpack -s CheckThisOut LinuxRocks.jpg billg@microsoft.com