I need some help, i’ve written a script that sends a mail to all the users in a database, the thing is, i’d like to have some sort of message tell me how many emails have been sent.
The code i’m using written is below, it’s only part of the script but it’s the bit that does the sending.
while($row = mysql_fetch_array($result))
$request_subs = $row[‘requests’];
$name = $row[‘name’];
mail("$request_subs", $subject, $message, $headers);
The reason i’d like to do this is becuase i have around 120 mails that i’ll be sending out at a time and need to make sure that it goes out to everyone on the list.
Is there an easy way to do this?