My program is installed on linux server.
The program sends email to various users.

But the problem is that even though the content-type has been set as "text/html" the mails are being sent in text only.

So how do I rectify this?

I think the linux box does not have smtp server, it uses the sendmessage.