PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I was wondering if it was possible to send an email to every email in my database. The column name which holds the emails is "Emails". Is this possible? I was thinking of creating a while loop to show all the emails and use mail() to send to each address.
also you need to bear script-timeout in mind. Don't set_timeout() to 0 (i.e. never) - that could, in the worst circumstances, crash the server. Rather set a high timeout (59 minutes) and call your mailing script every hour to check if it needs to send more emails.