Msg#: 3483281 posted 1:03 pm on Oct 21, 2007 (gmt 0)
Hi, I am using the following code to send mails (the emails are stored in the database).
The problem is If there are 5 mails in the database then the following code sends 5 emails to each of the 5 emails... i mean firstname.lastname@example.org then the second mail has to recipients as email@example.com and firstname.lastname@example.org then the third recipient gets cc as email@example.com, firstname.lastname@example.org and email@example.com and so on... and the loop continues ... what to do
$subject="Your friend sends you an interesting link"; $message="Greetings,
Your friend wants you to check the following link: http://example.com";