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,
Ben
****************************************************************
* 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