Re: [PHP] Individual bulk e-mails - performance question
- From: dafneves@xxxxxxxxx ("Diogo Neves")
- Date: Sat, 30 Aug 2008 22:17:30 +0100
Well, i have done that once and it worked pretty well...
Only diference was that i had a hour limit ( think dreamhost hosting )
and used Swift Mailer, but i think it don't matter a lot ;)
I think is a good solution...
On Sat, Aug 30, 2008 at 6:40 PM, Merlin <merlin_x@xxxxxxxxxxx> wrote:
Hi everybody,
I am running a travel community where users want to get informed on changes
inside different groups they have subscribed to.
At the moment I am doing this with a for loop that generates an individual
e-mail sent to them via phpmailer. That works, however the submit of the
content upload form (that triggers the e-mail notification) now takes
several seconds, as more and more users subscribe.
I am thinking about placing the info on the individual e-mail inside a ascii
txt file that will be read by a cron job which will send the e-mail instead.
Something like every 5 minutes reading it line by line and then after
sending it removing the line.
e.g:
for:bla@xxxxxxx; body:individual
for:new@xxxxxxxxxxxxx; body:other email
Does this sound like a plan? Or do you believe that there are better ways
doing it? I could imagine that I would run into problems a few months from
now if for example the cron job will be triggered a second time, while the
first one has not finished.
Any ideas or suggestions? Thank you for any help.
Best regards,
Merlin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Thanks by your attention,
Diogo Neves
Web Developer @ SAPO.pt by PrimeIT.pt
.
- References:
- Individual bulk e-mails - performance question
- From: Merlin
- Individual bulk e-mails - performance question
- Prev by Date: Re: [PHP] Re: What's with the Rx symbol?
- Next by Date: how to write good code
- Previous by thread: Individual bulk e-mails - performance question
- Next by thread: Re: Individual bulk e-mails - performance question
- Index(es):