Attaching more than 2 files by mail in Unix
I have a lot of files to attach and send by email. To do this, I run a script. Can you help me with the code?
+3
user955086
source
to share
1 answer
You can use the option -a
from mailx
multiple times, for example:
$ mailx -s 'Few files attached' -a file1.txt -a file2.txt someone@some.com
You can also use uuencode
like this:
$ ( cat Mail_Report.txt; uuencode file1.txt file1.txt ; uuencode file2.txt file2.txt ) | mailx -s "SUBJECT" someone@some.com
+8
piokuc
source
to share