RE: [PHP] mail tag

From: Date: Wed, 03 Apr 2002 13:33:33 +0000
Subject: RE: [PHP] mail tag
Groups: php.general 
Request: Send a blank email to php-general+get-91300@lists.php.net to get a copy of this message
stripslashes() failed??? I've used stripslahses in this situation, and it's worked perfectly. Wonder what else is going on here? Go without quotes. Try: mail($usersemail, $subject, $message, $headers); -----Original Message----- From: hamish [mailto:hamish@hamishprice.co.uk] Sent: Wednesday, April 03, 2002 7:28 AM To: php-general@lists.php.net Subject: [PHP] mail tag 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); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#91300) next »