Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Help needed:Sending Multiple Attachments as Email using Shell Script in AIX

651025Apr 7 2009 — edited May 20 2009
Hi 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 17 2009
Added on Apr 7 2009
4 comments
2,228 views