RE: [PHP-DB] escape character
| From: | Hutchins, Richard | Date: | Wed, 09 Jun 2004 13:25:01 +0000 |
| Subject: | RE: [PHP-DB] escape character | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-34685@lists.php.net to get a copy of this message | ||
stripslashes()?
-----Original Message-----
From: Marie Osypian [mailto:mosypian@savingforcollege.com]
Sent: Wednesday, June 09, 2004 9:22 AM
To: php-db@lists.php.net
Subject: [PHP-DB] escape character
\"Fees and Expenses.\"
Quick question: I am sending email via a simple script: \"QUOTED TEXT.\" is
in the body of the message with escape characters. When the mail is sent and
arrives the \ (escape characters) are still in the email text, any way to
remove them an not break the script?
$headers = "From: $name <$email>\n";
$headers .= "Cc: $Name <$email>\n";
$headers .= "X-Sender: <$email>\n";
$headers .= "X-Mailer: $Name\n";
$headers .= "X-Priority: 1\n";
$headers .= "Return-Path: <$email>";
$recipient = "$user_first $user_last <$user_email>";
$subject = "$Subject";
$message = "Dear $First $Last,\n";
$message .= "\n";
$message .= "Example text here \"QUOTED TEXT.\" \n";
$message .= "\n";
$message .= "Example text here \"QUOTED TEXT.\"\n";
$message .= "\n";
$message .= "Example text here \"QUOTED TEXT.\"\n";
$message .= "\n";
$message .= "$Name\n";
$message .= "$Company\n";
$message .= "$Phone \n";
mail($recipient, $subject, $message, $headers);
Thanks,
MAO