> 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

Reply via email to