I have 2195 email addresses in a database, I need to send an e-mail to them using PHP, and I want the a message to display in the brower window each time an e-mail is sent.
I could code this myself, however I have just lost about 150 hours of work and therefore do not have a spare minute for less high priority work.
I suggest using something like a html launch page the php file loaded from an iframe, or similar. Be aware of "unable to re-send headers" issues.
## Deliverables
The Code must meet the following criteria:
1) Only languages to be used: PHP, HTML, Javascript.
2) The e-mail can be plan text, I can edit the content of the e-mail in the code, or you can make it be entered as a form if you wish, the first line of the body must read "Dear CUSTOMER," where CUSTOMER is the entry in the database column eBayID.
3) The database table where the data is held is called "paypalpayments" and the structure is as follows:
* varchar: eBayID
* Varchar: Email
* int : unique_id
unique_id is the primary key and each field is sequentially numbered from 1 to 2195, which should make this little task very easy.
4) Due to sending limitations imposed by my host, I need an 8.1 second delay in between each e-mail send.
5) The browser window that sets the script off must display progress as follows: "Email Number **#** sent to **CUSTOMER** at **E-MAIL**" where # = unique_id, CUSTOMER = eBayID and E-MAIl = Email." Additionally the entire progress history should remain visible as it is updated, so that I can scroll back and check each entry if required.
6) Be aware that this script will take around 5 hours to run, and will be unattended, it is important that it does not time out.
## Platform
Linux webserver running PHP/MySQL.