i am using the following piece of code in a job:
MESSAGE=email1.txt
TO="aaa@xyz.com"
CC="bbb@xyz.com;ccc@xyz.com"
SUBJECT="_"
echo ~c "$CC" >> $MESSAGE
echo ~s "File Transfer: Successful" >> $MESSAGE
echo "The requested files have been successfully transferred" >> $MESSAGE
echo "to the designated directory. They were processed on " >> $MESSAGE
echo Date >> $MESSAGE
echo "No errors were reported." >> $MESSAGE
echo "" >> $MESSAGE
echo "Thank you." >> $MESSAGE
echo "" >> $MESSAGE
echo "C. Hunter" >> $MESSAGE
mailx -s $SUBJECT $TO < $MESSAGE
this works fine, for the most part. however, i have two questions: firstly the word "Date" is being inserted in the file and not the date value. how do i insert the date value? secondly, the CC portion does not deliver the email, even though the recipients appear in the CC line when it is received by aaa@xyz.com.
thanks in advance.
MESSAGE=email1.txt
TO="aaa@xyz.com"
CC="bbb@xyz.com;ccc@xyz.com"
SUBJECT="_"
echo ~c "$CC" >> $MESSAGE
echo ~s "File Transfer: Successful" >> $MESSAGE
echo "The requested files have been successfully transferred" >> $MESSAGE
echo "to the designated directory. They were processed on " >> $MESSAGE
echo Date >> $MESSAGE
echo "No errors were reported." >> $MESSAGE
echo "" >> $MESSAGE
echo "Thank you." >> $MESSAGE
echo "" >> $MESSAGE
echo "C. Hunter" >> $MESSAGE
mailx -s $SUBJECT $TO < $MESSAGE
this works fine, for the most part. however, i have two questions: firstly the word "Date" is being inserted in the file and not the date value. how do i insert the date value? secondly, the CC portion does not deliver the email, even though the recipients appear in the CC line when it is received by aaa@xyz.com.
thanks in advance.