help sending mail on linux server

Hi,
I coded a bash script.I m trying to use this command in the script

mail -s "test" user@abc.com

I tried this command on prompt.however it hangs.I check /var/log/maillog/

stat=Deferred: Connection timed out with mail.rdmedia.com.
sendmail[14303]: n0M8lscO014303: localhost [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA

I was emailing but since last month I couldnot.
what might be problem?

Kind Regards

It may be waiting for you to type the body of the email.
Try this:

echo test | mail -s test user@abc.com

Hi
I think server was blocked on the network by router or switch.
Thanks a lot.