I'm running a script to send a mail with few lines. Requirement is I need to add few people in cc.
So I have created below scripts. For people who needs to be in TO and CC , I have created 2 separate files as you can see below :
echo Reminder mail sending
cat test_mail.txt | mailx -r email@example.com -s "subject" "$TO_LIST" -c "$CC_LIST"
So without -c "$CC_LIST", my script running fine but while using -c option it gives error as below :
-c... User unknown
As it seems considering -c as another mailed.