madmic
Posts: 11
|
| Posted: 11/27/2007, 7:03 AM |
|
I need to strip slashes from Ad_text when sending an email...
I have the email working great except for the html code breaking the Ad_text here is what I have and I don't know where to ad the stripslashes.
HELP PLEASE
global $classified;
ini_set("SMTP", "xxxxxxxx.xxxxxxx.xxxxxxxx");
$to = $Container->Ad_email->GetText();
$subject = $Container->Ad_catch->GetText();
$message = 'The following ad had been posted to the Swap Meet '."\r\n"."\r\n";
$message .= $Container->Ad_text->GetText()."\r\n"."\r\n";
$message .='This ad will expire on ';
$message .= $Container->Ad_end_date->GetText();
$from = 'lmccormick@xxxxxxxx.xxx';
$additional_headers = "From: $from\nReply-To: $from\nContent-Type: text/plain, Bcc:lmccormick@xxxxxxx.xxx";
mail ($to, $subject, $message, $additional_headers);
ini_restore("SMTP");
[ /code]
_________________
Madmic |