Using MAILTO where can i give the subject of the email without using echo Test | mail -s Test xyz@example.com
because if i use like this for sender to a one user it is okay if i want to add multiple user mails then for every script i have to add the mail id's which will be not good when comapare to MAILTO command.
Right now i have the script to send the mail to a user and send the STDOUT AND STDERR to logs.txt.
MAILTO="xyz@example.com,abc@example.com,rer@example.com"
25 07 * * * /usr/local/bin/curator --dry-run --config /home/itadmin/.curator/curator.yml /home/itadmin/.curator/snapshot.yml 2>&1 | /usr/bin/tee -a /home/itadmin/.curator/logs.txt
What i want is that in the MAILTO command is it possible to subject to all the users listed in that command like this MAILTO="xyz@example.com,abc@example.com,rer@example.com?subject=Mail Tested"
Thanks