Subject: RE: Sending plain text file attachment

From: George Gallen <[email-masked]>
Date: Fri, 2 Jun 2000 12:05:51 -0400

what about using:

cat filename | uuencode outputfilename | mailx -s "subject" emailaddress

Where filename - is the filename to attach
      outputfilename - is the filename to be assigned to the attachment
      emailaddress - is where to send the file

Although the above will only send an attachment

(cat emailfile ; cat filename | uuencode outfile) | mailx -s "subject"
address

The above will put the contents of emailfile as the body of the message
and attach filename as outfile and email to address.

George

>-----Original Message-----
>From: Scott Leibrand [mailto:[email-masked]]
>Sent: Friday, June 02, 2000 11:53 AM
>To: Pine Discussion Forum
>Subject: Re: Sending plain text file attachment
>
>
>On Fri, 2 Jun 2000, Arnie Linder wrote:
>
>> Is there any way from unix to send a mail message with a 
>file attachment
>> from the command prompt?  The mail command can send a file 
>as an email, but
>> I need the file to be an attachment not the message.  Pine 
>can send an
>> attachment but it has to be input from compose (or does it?).
>
>Yes, Pine needs ^X to send, unless you pick up and apply 
>Eduardo's patch.
>
>I think there's another program that can do the same thing, but I can't
>remember what it's called for sure.  I'm pretty sure it has MIME in its
>name, though.
>
>-- 
>Scott Leibrand
>[email-masked]            (Yes, that is a 
>valid address.)
>http://students.washington.edu/leibrand
>* RCW 19.190 notice: This email address is located in 
>Washington State. *
>* Unsolicited commercial email may be billed $500 per message. 
>         *
>