what mailserver are you using and how is it called in php.ini?
and what else is in the message causing the problem.

Best Wishes & Happy New Year

Paul Roberts
[EMAIL PROTECTED]
++++++++++++++++++++++++

----- Original Message ----- 
From: "Ben Edwards" <[EMAIL PROTECTED]>
To: "1LT John W. Holmes" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, December 26, 2002 4:36 PM
Subject: Re: [PHP] Problem with comma in mail form


Sorted it out with

     $message = ereg_replace("(\r\n|\n|\r)", "\n", trim( stripslashes( 
$message) ) );

trim and stripslashes not strictly speaking nessesery.  Not 100% sure what 
happened here but guess \r\n or \r was causing problems.

Ben

At 11:11 26/12/2002 -0500, 1LT John W. Holmes wrote:

> > I have actually discovered the problem is in fact that the message gets
> > truncated after a Carriage Return.
> >
> > The even wearder thing is that
> >        $msg = ereg_replace( "\n", "NL", $msg );
> >
> > Douse put NL where the carriage return was but also seems to leave some
> > kind on new line character.
> >
> > So when I run $mgs through the function, do echo $msg, and look in the
> > source of the HTML $msg is still on a number of different lines,
>
>I'm still not sure why the message would be truncated, but try replacing
>\r\n instead of just \n. Windows uses \r\n, *nix uses \n and I think MAC
>uses \r.
>
>What are you using to view the message?
>
>---John Holmes...
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php

****************************************************************
* Ben Edwards                              +44 (0)117 9400 636 *
* Critical Site Builder    http://www.criticaldistribution.com *
* online collaborative web authoring content management system *
* Get alt news/views films online   http://www.cultureshop.org *
* i-Contact Progressive Video      http://www.videonetwork.org *
* Smashing the Corporate image       http://www.subvertise.org *
* Bristol Indymedia               http://bristol.indymedia.org *
* Bristol's radical news             http://www.bristle.org.uk *
* PGP : F0CA 42B8 D56F 28AD 169B  49F3 3056 C6DB 8538 EEF8     *
****************************************************************




--------------------------------------------------------------------------------


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


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

Reply via email to