Well, you need to do more than that if you want it to really be an attachment- some MUA's will treat a uuencoded tackon as an attachment, but real attachments require more work. Freely available programs like "mutt" can generate true MIME attachments,
How would you include some text in that email as well as the attachment? Mike
"Experience is the comb that Nature gives us after we are bald."
Is that a haiku?
I never could get the hang
of writing those things.
echo "Hi there Ed
`date`
here is a text file:
`cat /tmp/file`
Here is the uuencoded stuff:
`uuencode attachment.txt attachment.txt`
"|mail -s"subject matter"
Note: one " on first line, one on last. None in betweeen.
BUT: as I said before, this is NOT actual attachments. For real MIME attachments from the command line you can use something like Mutt.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.