sendmail not working

Hi,

I have to send a mail in html format and to do so I am using the below code. INPUT_FILE_DETAILS contains the html code but it doesn't work.
Could anyone suggest whats wrong in it.

(
echo "From: Team<Team@xy.com>"
echo "To: $MAILTO"
echo "Cc: $CCTO"
echo "MIME-Version: 1.0"
echo "Subject: $SUBJECT"
echo "Content-Type: text/html"
echo ""
cat /home/INPUT_FILE_DETAILS
) | sendmail -t

Regards,
Alok

Hi.

The code is fine. I tried it and it worked.

It's more helpful when you show the output and error messages.