* SUMMARY: email with body text and attachment
@ 1999-02-19 19:51 pjames
0 siblings, 0 replies; only message in thread
From: pjames @ 1999-02-19 19:51 UTC (permalink / raw)
To: tru64-unix-managers
Many thanks to all who answered my question on how to include a file as an
email attachment as well have it be the body of the same email.
Most responses suggested the following:
(cat report.txt; uuencode report.txt new_report.txt) | mailx -s "report"
boss
I like this one. It is simple and works.
Tom suggested the following (along with a one word commentary of
'Dah'....??)
cp report.txt report.tmp
echo "===== uuencoded attachment follows =====" >> report.tmp
uuencode report.txt new_report.txt >> report.tmp
mailx -s "report for you" big_boss < report.tmp
rm report.tmp
Although not as simple, it also worked well.
Also in line with keeping it simple, one suggestion from Stanley which
could probably be argued as being the best answer to the problem, although
not specifically to the question, was to just send the two separate emails,
one with the text in the body, and one with it as an attachment. This had
the advantage of decreasing the chances of very large messages being
dropped by an email system which couldn't handle very large messages. Kind
of a "belt and braces" approach as my English friends would say.
There were a couple other suggestions, but I didn't try them out. Again,
thanks to everyone who responded.
Patrick
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-02-19 19:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-19 19:51 SUMMARY: email with body text and attachment pjames
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox