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
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.