RE: escape character

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

 



stripslashes()?
 

-----Original Message-----
From: Marie Osypian [mailto:mosypian@xxxxxxxxxxxxxxxxxxxx]
Sent: Wednesday, June 09, 2004 9:22 AM
To: php-db@xxxxxxxxxxxxx
Subject:  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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux