I have just over 100 contacts i need to e-mail to
while ($row = mysql_fetch_array($result)){
$message = "Hello ".$row['first_name'].", \r\n";
$message = $message.$_POST['message'];
if (mail($row['email_address'], $subject, $message, $headers)){
$sent ++;
}else{
$error ++;
}
}
Will this run okay? I have looked at other methods (pear, smtp) but wondering if this will run okay?
Thanks
I have recently used the mail function to send to over 100 recipients. So yes it will work.
There where some problems with the function, but a slight delay (100ms) between the mail calls helped solve that problem.