Hi Team,
I have written the following code snippet to send mail with attachment to recipient. But I am getting mail with attachment. But the file is empty. All the 3 Attachment* size is more than 80KB.
Not sure what is wrong in the command.
MSG_BODY1="hi"
LOG_FILE="a/b/c/log1.log"
Attachment1="a/b/c/attach1.rej"
Attachment2="a/b/c/attach2.rej"
Attachment3='a/b/c/attach3.rej"
echo "${MSG_BODY1}" > email | ($Attachment1;$Attachment2;$Attachment3) | cat email - | mailx -s "hi" "abd@kkk.com >> $LOG_FILE
Can anyone help me to fix the issue?
Thanks
Krishnakanth