Hi,
I am creating a script that will go through a database of my members email addresses.
The issue I am having is there are more than 500 (which is my limit).
I would like to TEST to see what happens if the 500 email limit is passed so if the email failed, it will try again after an hour. PROBLEM is i do not want to overload the server.
The following code basically says if the email is sent, update record in database to “sent”. If failed, will update record to “failed”.
if(mail($temp_sql->email, “$subject”, $body, $headers)){
mysql_query(“UPDATE newsletter_temp SET request_status = ‘sent’ WHERE tempid = '”.$temp_sql->tempid."’");
}else{
mysql_query(“UPDATE newsletter_temp SET request_status = ‘failed’ WHERE tempid = '”.$temp_sql->tempid."’");
}
Do you know if when gone over the limit, it will still go through and go to ‘sent’ or will it stop and say ‘failed’?
Thank you.