Using PHP or Ajax ...Mailing Application
Posted: Mon Jan 29, 2007 7:15 pm
Hello,
I have a project in which I have to send an email to a list of people in a database. This list can reach as much as 600 a day. I'm using PHP to loop through and send the email using its simple mail().
Now its obvious to me that using a "while" loop to send these emails might cause the application to stall or even crash. Plus I would like to display a status method that states whether or not the email was sent and update the database accordingly.
I have been researching AJAX alot and have implimented quite a few ajax applications.
My questions for advice comes with the options of using AJAX to simulate a sort of "mail queue" that allows me to automatically send emails to the list of people in the contacts 25 emails at time. It sounds a bit drastic to me so it there is a more PHP driven solution i am open to it. I think i have my PHP ini at my disposal so i can make any adjustsments needed be.
But would an AJAX initiated application be a suffice way to simulate a mailing queue system that would allow me to automatically email records periodically (once initiated) to all records in my database?
Kendall
I have a project in which I have to send an email to a list of people in a database. This list can reach as much as 600 a day. I'm using PHP to loop through and send the email using its simple mail().
Now its obvious to me that using a "while" loop to send these emails might cause the application to stall or even crash. Plus I would like to display a status method that states whether or not the email was sent and update the database accordingly.
I have been researching AJAX alot and have implimented quite a few ajax applications.
My questions for advice comes with the options of using AJAX to simulate a sort of "mail queue" that allows me to automatically send emails to the list of people in the contacts 25 emails at time. It sounds a bit drastic to me so it there is a more PHP driven solution i am open to it. I think i have my PHP ini at my disposal so i can make any adjustsments needed be.
But would an AJAX initiated application be a suffice way to simulate a mailing queue system that would allow me to automatically email records periodically (once initiated) to all records in my database?
Kendall