Hey There,
The last line of your script is actually okay. The error you're getting looks like it's coming from sendmail. Depending on what version you're running you may need to edit /etc/mail/sendmail.cf or /etc/mail/submit.cf and specify the IP of the host in DaemonPortOptions - It's either that or ClientPortOptions.
In any event, your script is okay. Looks like sendmail won't send mail no matter what you do right now.
If you invoke
/usr/lib/sendmail -v [email]tamilmercy@yahoo.com[/email]
and can post that output, I might be able to tell you what you need to do to make your mail work
Also - you can run
/usr/lib/sendmail -vb [email]tamilmercy@yahoo.com[/email]
if you want to get the verbose output but not actually send the mail.
Thanks :)
, Mike