Help needed:Sending Multiple Attachments as Email using Shell Script in AIX
651025Apr 7 2009 — edited May 20 2009Hi All,
I have requirement to send multiple files as attachment in single Email to different users. I am using the below command to do.
uuencode $APPLCSF/$APPLLOG/l547417.req attach1.txt >> $APPLTMP/mailfile
uuencode $APPLCSF/$APPLLOG/l538725.req attach2.txt >> $APPLTMP/mailfile
mailx -N -s"Email Program" $email < $APPLTMP/mailfile
Problems
-------------
1. The first file is getting attached properly, but I am not able to attach the second file. Some strange characters(ASCII) are getting appending in the email. This happens if I send eamil to Lotus Notes.
2. Even the first file is not getting attached, everything is attached as string of strange characters, if I send to normal Email accounts like Gmail or Yahoo.
Appreciate if anyone can help me in fixing this.
Thanks,
Rahul.