using the mail function in php

From: Date: Sat, 14 Aug 2004 08:58:44 +0000
Subject: using the mail function in php
Groups: php.windows 
Request: Send a blank email to php-windows+get-24416@lists.php.net to get a copy of this message
I am still very new to php and I am trying to get my head around the mail function. If I set the content type to html (Content-type: text/html; charset=iso-8859-1) I can do basic html. Function details: http://au3.php.net/manual/en/function.mail.php However if I have any html that requires quotes (eg hrefs) the function will escape the quotes resulting in html with backslashes through it. eg. I submit the following to the message variable: <html><head<title>page title</title> </head><body> <img src="http://somwhere.com/images/something.jpg" border="0" width="300" height="200" alt=""> </body></html> I get this: <html><head<title>page title</title> </head><body> <img src=\"http://somwhere.com/images/something.jpg\" border=\"0\" width=\"300\" height=\"200\" alt=\"\"> </body></html> Any ideas? Thanks Neil

« previous php.windows (#24416) next »