From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96404239800457.tru64-unix-managers.marc@archive.invalid> From: Andy Cohen Date: Wed, 19 Jul 2000 21:19:11 +0000 To: tru64-unix-managers Subject: SUMMARY: (send)mail with attachments X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96404239800457 Thank you to everyone who replied....and the winner is: ======================================== easy. cat filename | uuencode attachmentfilename | mailx -s subject email@address ex. cat /tmp/file | uuencode somefile.txt | mailx -s test ggallen@slackinc.com to mix text as body and text/data as a file (cat bodytext ; cat file | uuencode attachmentfilename ) | mailx -s subject email@address ======================================== and yes, it is easy. the -s switch for mailx simply puts in a subject line. it looks like the key here is uuencode. Here's the original question: We're trying to write a korn shell script (run from a nightly cron job) that will send a large text file as an attachment. I don't see anything in the mail or sendmail man pages, the tru64.org archives, or any reference manual about how to do this. I'm therefore assuming that it's not possible but before giving up I thought I'd ask you all if I'm just plain missing something. Thanks again!!