Content-type: text/html when sending HTML email
Posted: Sun Dec 14, 2003 12:02 pm
Hi,
I have been trying to solve aproblem when sending HTML email, whereby everything works until I add "Content-type: text/html" to the headers.
The following code works:
But this doesn't:
Does anybody have any ideas? I would be most grateful - this has been puzzling me for hours.
Regards,
Lawrence
I have been trying to solve aproblem when sending HTML email, whereby everything works until I add "Content-type: text/html" to the headers.
The following code works:
Code: Select all
mail("Sender Name <sender@email.com>", "$subject", "Yes!! ", "From: $personname<$personemail>\n" . "MIME-Version: 1.0\n")Code: Select all
mail("Sender Name <sender@email.com>", "$subject", "Yes!! ", "From: $personname<$personemail>\n" . "MIME-Version: 1.0\n" . "Content-type: text/html\r\n")Regards,
Lawrence