Title: Message

\"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

Reply via email to