tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Andy Cohen <acohen () cognex ! com>
To: tru64-unix-managers
Subject: SUMMARY: (send)mail with attachments
Date: Wed, 19 Jul 2000 21:19:11 +0000	[thread overview]
Message-ID: <96404239800457.tru64-unix-managers.marc@archive.invalid> (raw)

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!!

                 reply	other threads:[~2000-07-19 21:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox