bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use uuencode with mailx command


From: Bob Proulx
Subject: Re: How to use uuencode with mailx command
Date: Tue, 4 Aug 2009 09:49:38 -0600
User-agent: Mutt/1.5.18 (2008-05-17)

Balamurugan, Mariappan wrote:
> I would like to create mail with attachment.
> For example : Below command does not work
> 
> (cat bdy.txt ; uuencode a.txt a.xls) | mailx -s "This NOT works " 
> address@hidden
> 
> Kindly suggest me.

I like mailx since it is one of the standardized commands.  However it
is also an old command and predates MIME attachments by many years.
As far as I know it does not have the ability to create attachments.

When sending mail with an attachment I prefer to use 'mutt'.

  http://www.mutt.org/

Using mutt it is very easy to send files as attachments using the
command line.

  mutt -a a.xls -s "File is attached" address@hidden

Note that there is no need to uuencode the file since as a MIME
attachment it will already use a base64 encoding.

Alternatively the classic 'metamail' package contains a 'mailto'
command which can also be used to create MIME mail with attachments
from the command line.  I mention this only because metamail is a very
old package and often available on systems even when mutt is not
installed but otherwise I think you would be better served by using
mutt or other alternatives if at all possible.

Bob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]