I have to write a shell script using a here document that will send a personalized greeting email to each student on a mailing list. I am using following script to sent mail to individual users:
$ cat > here.sh mail $1 << endoftext Dear $1 Welcome to the Unix Class -$USER endof text
I am new to Unix so am not able to create mailing list.
Any help is really appreciated.