Hi,
I want to send an email with multiple attachment using uuencode and mail command.
I am able to send with one attachment
Ex:uuencode abc.txt abc.txt | mail test@test.com -s "Test3"
Can anyone reply with syntax.
Regards
BS
Hi,
I want to send an email with multiple attachment using uuencode and mail command.
I am able to send with one attachment
Ex:uuencode abc.txt abc.txt | mail test@test.com -s "Test3"
Can anyone reply with syntax.
Regards
BS
What is the error you are getting with that command line.
uuencode abc.txt abc.txt | mail -s "Test3" test@test.com
Thanks for your quick reply. I am not getting any error here. I need to send an email with multiple attachments.
Finally I have found the solution to send an email with multiple attachment using uuencode command
(echo "$EMAIL_BODY"; uuencode $ATTACH_LOG_FILE l$REQUEST_ID.req; uuencode $ATTACH_OUT_FILE o$REQUEST_ID.out) | mail "$EMAIL_ID" -s "$EMAIL_SUB"
Regards
BS
another solution is a program call "email" with the "--attach" option:
Linux.com :: A utility for sending complex email messages from the command line