Page 1 of 1

php mailer

Posted: Wed May 26, 2004 6:30 pm
by potato
Hi,

does somebody knows a good php-mailer? To mail to all my members.
I allready have a db with members, so the script has to be easy to make it work with my db.

greets,
tom

Posted: Wed May 26, 2004 8:40 pm
by kettle_drum
You can make your own.

Code: Select all

$count = mysql_query("SELECT count(*) FROM members");
$count = mysql_fetch_assoc($count);

for($x = 0; $x < $count['count(*)']; $x++){
   $result = mysql_query("SELECT * FROM members LIMIT 5, $start");
   while($row = mysql_fetch_assoc($result)){
      mail();
      //pause for a second or two so you dont use a continous stream of bandwidth and server resources
   }
}
Etc.

Posted: Thu May 27, 2004 7:34 am
by dave420
I think you want "5, $start" reversed :)