mail tag

From: Date: Wed, 03 Apr 2002 13:28:26 +0000
Subject: mail tag
Groups: php.general 
Request: Send a blank email to php-general+get-91299@lists.php.net to get a copy of this message
hello, I have coded a typical mail process for sending a mail from a form. It works fine except for anytime any one puts a ' or a " in the content of the mail, the tag places a \ infront of it. I have tried to stripslashes and the mail is being sent as html. Has any one got the answer? code below: (description is my variable on a previous page where the user types in the content of the mail) $subject = 'Email from me'; $message = " This email is regards a question / query that you put to me. This email is for reference purposes only. <br><br> You asked: <br><br> ".stripslashes ($description); $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "from: Help Desk <hamish@hamishprice.co.uk>\r\n"; mail("$usersemail", "$subject", "$message", $headers);

« previous php.general (#91299) next »