Sending Bulk Email
Posted: Fri Sep 17, 2010 1:53 pm
I have a cron job set to alert users of an upcoming conference call (with call instructions/details). When I run test with just my account, I recieve the email and text message. At the end of the script, it also adds an entry to a table noting the successful date and time that the notifications were sent.
As I said, all works well testing with 1 account receiving the notifications.
I did a test on roughly 1500 users and according to the database, the script ran successfully, however, the emails weren't received until 12 hours later (even though the date/time in the db was correct). I am just using the simple mail() function as the email is literally, "Conference Call Today at 3 PM. Call 555-555-5555 and enter the code xxxxxx to log in."
Right now, the mail function runs for each user and sends an individual message. Since it appears that the script runs successfully, I am assuming that the mail is getting hung up on the server somehow/somewhere.
My only thought is to try sending one email and "BCC"ing all the recipients, but I'm not sure if that would still process as 1500 emails, or if it is treated like one...
Any thoughts?
As I said, all works well testing with 1 account receiving the notifications.
I did a test on roughly 1500 users and according to the database, the script ran successfully, however, the emails weren't received until 12 hours later (even though the date/time in the db was correct). I am just using the simple mail() function as the email is literally, "Conference Call Today at 3 PM. Call 555-555-5555 and enter the code xxxxxx to log in."
Right now, the mail function runs for each user and sends an individual message. Since it appears that the script runs successfully, I am assuming that the mail is getting hung up on the server somehow/somewhere.
My only thought is to try sending one email and "BCC"ing all the recipients, but I'm not sure if that would still process as 1500 emails, or if it is treated like one...
Any thoughts?