I am using the php mail() function, but it doesn't work when i set the header content-type to text/html.
So this works:
mail('to@mail.com','test','test',
'From: from@mail.com
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit');
But when i change text/plain to text html, so like this:
mail('to@mail.com','test','test',
'From: from@mail.com
MIME-Version: 1.0
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit');
It doesnt work anymore. I don't get any error messages, but mail() first returns true, and after changing the content type it returns false.
Edit to clarify duplicate status
The linked question contains a global question, and the answers are not even close to give an answer for this situation. I am trying to debug this problem, suggesting something like: Just use a library is not a valid response for this.