Jump to content

Mailing System Problem


MemphiS

Recommended Posts

Just finishing off a few problems i found in my mailing system and one im having trouble resolving is;when a user receives a letter and then replys it is creating extra <br /> So after a few responces back and foward the orginal letter starts to look like the following example:


From [b]userA[/b] on date


Good Thanks you?



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



From [b]userB[/b] on date



hey how are you?



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



From [b]userA[/b] on date



Hello

And in the db each of those gaps come out as
<br />
<br />
<br />
<br />
<br />
<br />
Hello

You get the drift: Heres my code:

<?php
if (!empty($idm)){
if ($responRow>0){
$lastwrote = str_replace("<br />","\r\n",$retmymail[1]);
echo("\r\n___________________________________\r\n[b]$retmymail[0] Wrote...[/b]\r\n$lastwrote");
}
}
// $retmymail[1] = letter from the db
?>

 

Link to comment
https://forums.phpfreaks.com/topic/130877-mailing-system-problem/
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.