I\'m running a bash script in cron to send mail to multiple recipients when a certain condition is met.
I\'ve coded the variables like this:
subject=\"S
Try doing this :
recipients="user1@gmail.com,user2@gmail.com,user3@gmail.com"
And another approach, using shell here-doc :
/usr/sbin/sendmail "$recipients" <
Be sure to separate the headers from the body with a blank line as per RFC 822.