problem in php mail function?

  • Thread starter Thread starter Balaji
  • Start date Start date
B

Balaji

Guest
i have a loop that generates mail when there is a match for the requirement If suppose i have many matches the mail executes multiple times., but i don't need the whole mail to be generated repeatedly i wan't only the part of mail that is different person's details to be repeated in a single mail,how can i do that.
 
Well it is sort of hard to figure out exactly what you're trying to do, but I would say string concatenation would be the best bet.

So in the loop just do something like

$message += $tempVar

and then just send that $message with the mail function after the loop has executed and it will have all the data that the loop found.
 
Back
Top