uuencode attaches file at the beginning of the mail body

154 Views Asked by At

I am using below code in AIX and the problem is it attaches the file at the very beginning of the mail, I want to attach the file after the mail body.

(uuencode <filepath> <filename-in-mail>;cat <body-of-the-mail-file>) | mailx -s "Subject" -r <sender-address> <multiple-receiver-addresses> 

Any thoughts?, On AIX only uuencode is working, base64 or any other command doesn't work.

I tried a lame change in the code uuencode cat <body-of-the-mail-file>;<filepath> <filename-in-mail> but it gave error

0

There are 0 best solutions below