Sending email to multiple IDs

Hi,

I am trying to send an email to multiple IDs from Unix script. I have given the EmailIds in a file and trying to use the file as input in the script.

> cat Email
EmailID = "abc@xyz.com cbz@xyz.com"

In my script I have
. /Email
mailx -s "subj" $EmailID

This fails with the message "EmailID: not found"

Please help.....

---------- Post updated at 04:21 PM ---------- Previous update was at 04:00 PM ----------

I just removed teh space between EmailID and = in teh file Email..and it worked

you could have modified your /etc/aliases file the following way

abc : abc@xyz.com
cbz : cbz@xyz.com

emailgroup : abc, cbz

Then run your command

. /Email mailx -s "subj" emailgroup

Extra spaces and missing comma?

EmailID="abc@xyz.com,cbz@xyz.com"

I use elm and use the following way to send an email to multiple addresses:

elm -s "File Changed" $(</users/lodey/logs/pelist.txt)

The email addresses are contained in the text file

The text file looks like this:
u@me.com
test@123.ie
bedtime@night.com