* SUMMARY: (send)mail with attachments
@ 2000-07-19 21:19 Andy Cohen
0 siblings, 0 replies; only message in thread
From: Andy Cohen @ 2000-07-19 21:19 UTC (permalink / raw)
To: tru64-unix-managers
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!!
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-07-19 21:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-19 21:19 SUMMARY: (send)mail with attachments Andy Cohen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox