I'm trying to send mail using Mailx and uuencode with attachments using the following in a shellscript
attachments=uuencode file1 file1;uuencode file2 file2;
(echo BODY ; $attachments )| mailx -s "Attachments" -m [email protected]
For the above script only mail without attachment is sent,However when i use the following
(echo BODY ; uuencode file1 file1;uuencode file2 file2;)| mailx -s "Attachments" -m [email protected]
Now mail is sent with the attachments.
I'm fairly new shellscripting kindly help.