We have a ksh script that gets executed daily. It does it function properly however the mail portion does not reflect the subject of the email.
The line of code which executes the mail command is shown below:
mail -s "[Notification]: Success (Date:$batchdate)" `cat $recipients` < $mail_file
Our logs show that the variables batchdate, recipients, and mail_file gets resolved correctly. Now I'm not sure why the subject doesn't show. Is there a different syntax for mail to reflect the subject?