i have a php blog system where user can publicly post on our blog after registering, now i was trying to send emails to all my users after a new post is published that a new post name "title example" has been published.
$send = mysqli_query($con, "SELECT * FROM users");
while($em = mysqli_fetch_array($send)) {
phpmailer stuff here
to = ("$em['email']"); here I'm fetching every email of user
} while loop is closed here
i want to know is this correct way of sending email to all user? will this cause any load on server?