OSX Terminal Mail Attachment as body

1.2k Views Asked by At

I am trying to send an attachment which I created as mail body, but don't find any solution.

Here is my code,

find . -type f -name "*.html" > textfile.txt
uuencode /Users/bariscaliskan/Desktop/testfold/textfile.txt file.txt | mail -s "mailing test" [email protected]

This sends the file as attachment but I want that text to be in mail body. Thanks for help.

1

There are 1 best solutions below

0
On BEST ANSWER
find . -type f -name "*.html" | mail -s "mailing test" [email protected]