php mailer

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
potato
Forum Contributor
Posts: 192
Joined: Tue Mar 16, 2004 8:30 am
Location: my lovely trailer, next to the big tree

php mailer

Post 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
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post 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.
dave420
Forum Contributor
Posts: 106
Joined: Tue Feb 17, 2004 8:03 am

Post by dave420 »

I think you want "5, $start" reversed :)
Post Reply