Re: Attaching a file with "mail"
On Wed, Apr 23, 2003 at 07:13:02AM -0300, Fernando Shayani wrote:
> Is there any way to attach a file to the command mail?
> I need to automatic send a e-mail with a file attached to it.
>
> Ex: mail fernando@shayani.net -s "My subject" ATTACH.TAR
Not with that syntax, no. You could mime encode the file using "mimencode",
then do something like:
cat myencodedfile.txt | mail mail joe@blow.com -s "Subject"
(I haven't tried this.)
The answers using mutt and others are of course right, but it is possible to
do it with mail (and a script).
--
Carl Fink carlf@dm.net
Manager, Dueling Modems Computer Forum
<http://dm.net>
Reply to: