sendmail - sending a email coded as HTML

sendmail - sending a email coded as HTML

How do I sendmail as HTML code rather than just plain text, I have added my HTML code, script just rejects it
DC