![]() |
|
#1
|
||||
|
||||
email list script timing outI wrote the following PHP script to send out mass emails for my band (we're not spamming people, they only go out to people who add their emails to the list). The email list is stored in a myql database. This script below (with sensitive information blanked out) accesses the database and sends out an email to everyone on the list. The problem is, sometimes the browser times out before the while loop completes. The list is only getting longer too. Is there a better way to do this? I'm just wondering if someone can point me in the right direction. Thanks.
PHP Code:
|
|
#2
|
||||
|
||||
Re: email list script timing outI've accomplished the same functionality in the past with great sucess using CRON to send out daily/weekly/monthly newsletters... however, if you're not necessarily sending newsletters out at a fixed time, you could run the script from the command prompt... php SCRIPT.php.
Try that... however, if you want everything to be accessible from a browser, I'd have to think about it. Approx how many emails is this thing sending out? __________________
If practice makes perfect and nobody's perfect... why practice? Homepage: http://www.treywhite.com Blog: http://www.treywhite.com/blog.php Web Design Company: http://www.ewebproductions.com |
Recent GIDBlog
Last Week of IA Training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bulk Email hosting *** .com Bullet proof hosting | additional2 | Web Hosting Advertisements & Offers | 1 | 20-May-2007 13:55 |
| [Include] Doubly-linked List | dsmith | C Programming Language | 6 | 14-Apr-2006 13:12 |
| linked list error message | Krandygrl00 | CPP / C++ Forum | 4 | 22-Jun-2005 14:13 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The