using the mail function in php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux