mail format problem:

i need to send 2 diff mail in a single script:Below the script

#!/bin/ksh

echo "enter the number"
read num
if [ $num -eq 1 ]
then
mail -s "test" unix@yahoo.com

mail -s "test" 9886767000@nma.vodafone.in,9916138003@nma.vodafone.in
else
echo "test again"
fi
---------------------------------------------------------------

the above script is not sending 2 mails

Hi,

Instead "comma" give "space" between two mail ids.

there is already a space b/w 2 mails

mail -s "test" unix@yahoo.com

mail -s "test" 9886767000@nma.vodafone.in,9916138003@nma.vodafone.in
--------------------------------------------------------------------

I am talking about the marked in red.

mail -s "test" unix@yahoo.com < /dev/null

mail -s "test" 9886767000@nma.vodafone.in 9916138003@nma.vodafone.in </dev/null

thansk a lot dear. can u tell me how to insert messages in both the mails and then send it.

mail -s "Test Mail" unix@yahoo.com < File

Here File cotains the message body.