Hi guys,
Am writing a web based mailclient (obviously with PHP+IMAP),
In the 'ReplyMail' script, inorder to add the "> " string
at the beginning of everyline, I used the following code,
<?
$replymessage = $replymessage.str_replace("\n", "\n> ",
htmlspecialchars(trim(imap_body($mbox, $msg))));
?>
This is giving an output with one additional \n in the TEXTAREA,
like below
<- strip ->
>Hello Chandu,
>How are you. How is your coding going on.
>I'm on Mandrake 8.2.
>/Chandu
<- End of strip ->
Any workarounds for this,
I hav seen the code of many PHP based IMAP client's
but found out that all of those I checked are
working in the same way as aboove.
Squirrelmail is working as needed but I'm not able to
locate where exactly the code I needed is, in those bulky files.
so as a last resort I've posted here.
/Chandu
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php