Sending multiple files as an attachment to a Unix mail command

I have one piece of code mentioned below where it sends two files as an attachment.

mailx  -s "$ms - $cdate $ctime" $ReportGroup < ${mailmsg} >/dev/null 2>&1

      

Here mailmsg contains some files. Now I am trying to send another file xyz.csv

in the above command. how can i do the same?

Thanks in advance.

+3


source to share


1 answer


use uuuencode function something like



(uuencode filename.format filename_to_be_dispalyed_in_attachment.format) | mailx-s "subject" $ {mailmsg}> / dev / null 2> & 1

0


source







All Articles