HTML email is not shown as HTML?

Hi there,

I’m using php mail() function and already put

Content-type: text/html; charset=utf-8

in the email header, and it works when I tested it in my email client (Thunderbird) and Gmail and Yahoo. But my client says the email is shown with html tags when arrive in his email. Is there anything else that determine the email is HTML email? is anything in the email server can prevent the email to show as html?


It would be easier to say if you show your code to send the emails. Did you ask your client which email client they is using to receive the emails? One suggestion, it will be safe if you use PHPMailer or [URL=“”]Swiftmailer classes to send the emails from PHP.

Hi Rajug,

Thanks for your reply. My code is too long to put here, but basically I just put that header in the email. My client says he’s using yahoo mail, but as I tried it works fine on my end. I just want to know if there are other possible things that can cause the problem, eg. mail server settings?