Thanks, but my problems is not with the script, what I really don't know how to do is sending the mail from a command.
mail -t sends a mail only to unix account and I want to send the mail to an "outside" mail account like
something@hotmail.com
Thanks again.