I dont know if its the right question.
The thing is that, I have a list of users and their emails stored in my database.
Now I want to send a email to all of them with the help of a loop and setting a time interval delay (may be 5-10 seconds ).
foreach($users as $user){
//code to send the email
}
I roughly have around 50 users. So will the code execute until the loop will complete? I mean is it a correct way to do?
What if I have hundreds or even thousands of users in future?