Project Description:
i have a database of about 3000 opt in/out members. i send mail to them with a php script, but my smtp mail server allows for only 300 mails per day. i need a modification done to my script so that it send the first 300 emails to one smtp server, then the next 300 to another and so on.
also i need all the personal/variable info, like the array of smtp servers, site url and email reply address to be in a seperate php file like config.php
maybe use something like this:
$stmp_info = //multi-d array with server info
while( $i < array_len($stmp_info)){
$counter = 0;
while($row = mysql_get_array($resource)){
//send out email from the email address in the db row based on smtp info at $stmp_info[$i]
$counter++;
if($counter == 300) break;
}
$i++;
}
here is my current mailer.php attachment
please ask if unsure about anything.
if any one has another suggestion of how to get past a 300/day mailer limit, im open for suggestion,
thanks
pietbez