Hello,
I need a shell script which need to send a mail with 4 *.csv files as attachments.Anybody can help me?
At present i have a script which is sending only one file as attachments.But i need a script which send 4 files in a shot.
#!/bin/ksh
/bin/mail
xxxx@xx.xom << EOF
Subject: Test
To: "xxxx@xx.xom"
MIME-Version: 1.0
Content-Type: Multipart/Mixed; boundary="MY_LONG_BOUNDARY_LINE"
--MY_LONG_BOUNDARY_LINE
`/usr/bin/cat mail_body.txt`
--MY_LONG_BOUNDARY_LINE
Content-Type: text/plain; charset=us-ascii; NAME=zzz.csv;
Content-transfer-encoding: x-uuencode
`/usr/bin/uuencode /fullpath/zz.csv zz.csv`
--MY_LONG_BOUNDARY_LINE--
EOF
Any help will be appreciated.
Thanks
K