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