This is one of the strange problems i have faced in PHP.
When you try to send HTML mails using mail() function in PHP you get HTML code in the main instead of showing HTML Content.
It may happen because of some missing headers but it may happen because of some restrictions on mail server also.
So to cross check it you need to check following things first..
Check if you have provided proper headers and other things are proper or not.
