"Unable to send a mail"

hi,,

i am trying to excexute one simple script.
what it suppose to do is, just send a mail to the mentioned mail id.

here is my code..

mutt -s "Test mail" my mail id < /dev/null

its giving " : No such file or directory null " error.
i have checked in the /dev directory, there null directory is not there..

so what i have to do next to run this script.
can anybody help me?

Thanks
Vinay TJ

try the following command:

echo "" | mutt -s "test subject" your@mail.address

or you can use "mail" command

echo "test message" | mail -s "test subject" your@mail.address

assume that your MTA works.

hi thanhdat,
Thanks man,,,
its working ,,, :b:

Regards
Vinay