email configuration problem

I am using solaris 10 on x86.

I have a requirement to send email using shell script.

User can configure any email address like xyz@yahoo.com or xyz@hotmail.com in the configuration file.

I have studied online tutorial and they say.

we should modify
sendmail.cf for this purpose.
configure DNS server
configure system domain

Can any body please just write the steps in abstract way, that at least could give me a starting point to fix this problem.

Thanks,
Moazzam

Sendmail Documentation

I executed the following command.
echo "my messgae" | /usr/bin/mailx -s "My Subject" xyz@gmail.com

the command executed successfully. But i could not receive my email at the destination.

does mailq or sendmail -q returns any output?
check if the sendmail daemon is running.. #ps -ef |grep sendmail
more resource here : Ilkda.com is for sale | HugeDomains