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 email@example.com then the second mail has to recipients as firstname.lastname@example.org and email@example.com then the third recipient gets cc as firstname.lastname@example.org, email@example.com and firstname.lastname@example.org 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";