In Strnig replace, or remove Please help

Discussion in 'PHP' started by lowridertj, May 13, 2009.

  1. #1
    I have a reply all feature in one of my sites.

    I have it store the cc of people to the message sent.
    However after it reply all'd to a few times it adds in names duplicate times.

    example if I was RealT

    Realt , Realt , DGN , Realt , LockDown , DGN , Real

    How to fix this from happening. Im drawing a blank at the moment.

    Thanks,
    TJ
     
    lowridertj, May 13, 2009 IP
  2. Gordaen

    Gordaen Peon

    Messages:
    277
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The best answer is to see why they're duplicating and not add them again in the first place. The second best might be to store each name as an array key, then just foreach through the array to recreate the string or whatever the original data structure is.
     
    Gordaen, May 13, 2009 IP
  3. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #3
    Do you have to send the email as CC? Could you perhaps send it as BCC? Or is it supposed to be possible to reply all when the users receive the email?
     
    PoPSiCLe, May 13, 2009 IP
  4. lowridertj

    lowridertj Well-Known Member

    Messages:
    2,882
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    195
    #4
    I see.. thank you

    they ahve the option to reply to the sender only. or reply all to all that was sent the message.

    However in the message cc, or copy line is re-inserted for the new message and duplicates the cc line.

    TJ
     
    lowridertj, May 14, 2009 IP