Hi All,
I want to send a message through email to 5 people in unix script. Please let me know, how to do it.Please do reply it is urgent.
Thanks,
Mary.
Hi All,
I want to send a message through email to 5 people in unix script. Please let me know, how to do it.Please do reply it is urgent.
Thanks,
Mary.
Duplicate post
you can use shell to mail five person,
mail -s " hi guy " xx@yy.com
you can read mail adresses from a txt file and send mail in a while loop all of them.
myFile="/root/somefile"
myMail=""
while [ 1 ]
do
read myMail || break
mail -s " hi guy " $Mail
done < $myFile
One of 3, all but one are now closed.