Not able to receive mail using mail command

Hi all,
I have written a script which supposed send a mail.
For testing I am just sending mails to my ID.
script I have written to send mail is-

#!/usr/bin/ksh
MAIL_FILE="$HOME/MAIL_FILE"
MAILOUT_LIST="milindb@example.com"
mail -s "Subject" $MAILOUT_LIST < $MAIL_FILE
 
if [ "$?" -eq 0 ]
then
echo "Mail sent succesfuly"
else
echo "Sending mail failed"
fi

after running this script on ksh I am getting message as "Mail sent succesfully" but I am not receiving any mails in my inbox.
Please help me to find out solution for this.

Regards
Milind

I don't think there is any problem in your script. May be there is some problem in your mail server.
Please check from your command prompt if mail command is working or not,
mail -s "Subject" abc@def.com
If you receive the mail, then from the script also u will get the mail.

I tried the command option also it didn't worked..sorry
How can I check mail server configuration ?
Whether I have access to send mails?

Thanks

I tried the command line option also it didn't worked..sorry
How can I check mail server configuration ?
Whether I have access to send mails?

Thanks

Please post the name and version of your Operating System and state whether you are the administrator of the computer and have "root" access.
Please state whether the target email address is on your server or somewhere else. There is quite a difference between mailing within the computer and mailing the outside world.

Thanks methyl for u r reply.
I am using SunOS 5.10 . I am not a administrator & I dont have root access as well.
Mailing address is on different server, actually I am trying to send an email to my outlook inbox.

Regards
Milind

I think you need to speak to your server administrator.