I'm trying to write a script to email all the users of my database and for the life of me I can't get it to work. I've tried everything I could find on this and other fourms and nothing is working.
I have a table in my database called users with a row called email to store their addresses. I have a form that posts the subject, message, and sender, but I can't figure out how to send it to multiple recipients. It works just fine with one recipient but if I query the database for all the email address it only sends it to the first email address.
Any help would be appreciated.
Here's the code I'm using: