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.
You asked:
".stripslashes ($description); 

$headers  = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "from: Help Desk <[EMAIL PROTECTED]>\r\n"; 

mail("$usersemail", "$subject", "$message", $headers); 

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

Reply via email to