I want to wait N seconds after each iteration in the loop below before proceeding to the next iteration. Each iteration sends an email by SMTP and, because the loop will send over 100 emails, I want there to be a short belay between each email being sent. Is this possible to do with PHP?
while ($date = $data) {
$mail = $date['email'];
smtp_mailer($mail , $subject, $massage);
}