Thank you to everyone who replied....and the winner is:
========================================
easy.
cat filename | uuencode attachmentfilename | mailx -s subject email_at_address
ex.
cat /tmp/file | uuencode somefile.txt | mailx -s test ggallen_at_slackinc.com
to mix text as body and text/data as a file
(cat bodytext ; cat file | uuencode attachmentfilename ) | mailx -s subject
email_at_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!!
Received on Wed Jul 19 2000 - 21:34:36 NZST